org.glite.rgma
Interface Service

All Known Subinterfaces:
Registry, Schema

public interface Service

Provides methods common to all services.


Method Summary
 java.lang.String getProperty(java.lang.String name, java.lang.String parameter)
          Gets the value of the specified service property.
 java.lang.String getVersion()
          Gets the version of this implementation.
 void setProperty(java.lang.String name, java.lang.String parameter, java.lang.String value)
          Changes the value of the specified service property.
 

Method Detail

setProperty

void setProperty(java.lang.String name,
                 java.lang.String parameter,
                 java.lang.String value)
                 throws RGMAException,
                        RemoteException
Changes the value of the specified service property.

Parameters:
name - Name of property.
parameter - Parameter to property (can be null).
value - New value of property.
Throws:
RemoteException - If the service could not be contacted.
RGMAException - If the name/parameter combination is invalid.

getProperty

java.lang.String getProperty(java.lang.String name,
                             java.lang.String parameter)
                             throws RGMAException,
                                    RemoteException
Gets the value of the specified service property.

Parameters:
name - Name of property.
parameter - Parameter to property (can be null).
Returns:
Current value of property (null if property not set).
Throws:
RemoteException - If the service could not be contacted.
RGMAException - If the name/parameter combination is invalid.

getVersion

java.lang.String getVersion()
                            throws RemoteException
Gets the version of this implementation.

Returns:
The version number.
Throws:
RemoteException - If the service could not be contacted.