|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.rgma.discovery.ServiceImpl
Provides basic information about a Service.
Constructor Summary | |
ServiceImpl()
Creates a new empty Service object. |
|
ServiceImpl(org.glite.discovery.Service service)
Creates a new Service object from an existing Service. |
|
ServiceImpl(java.lang.String name,
java.lang.String type,
java.lang.String endpoint,
java.lang.String version)
Creates a new Service object with the given name, type, endpoint, version and status. |
|
ServiceImpl(java.lang.String name,
java.lang.String type,
java.lang.String endpoint,
java.lang.String version,
int status,
java.lang.String statusMessage)
Deprecated. status and statusMessage should not be used in Service, @see ServiceImpl(String,String,String,String) |
Method Summary | |
java.lang.String |
getEndpoint()
Gets the service endpoint. |
java.lang.String |
getName()
Gets the unique service name. |
int |
getStatus()
Deprecated. |
java.lang.String |
getStatusMessage()
Deprecated. |
java.lang.String |
getType()
Gets the service type. |
java.lang.String |
getVersion()
Gets the service version. |
void |
setEndpoint(java.lang.String endpoint)
Sets the service endpoint. |
void |
setName(java.lang.String name)
Sets the unique service name. |
void |
setStatus(int status)
Deprecated. |
void |
setStatusMessage(java.lang.String statusMessage)
Deprecated. |
void |
setType(java.lang.String type)
Sets the service type. |
void |
setVersion(java.lang.String version)
Sets the service version. |
java.lang.String |
toString()
Returns a string representation of this Service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServiceImpl()
public ServiceImpl(org.glite.discovery.Service service)
service
- A Service object.public ServiceImpl(java.lang.String name, java.lang.String type, java.lang.String endpoint, java.lang.String version, int status, java.lang.String statusMessage)
name
- The unique service ID.type
- The service type.endpoint
- The service endpoint.version
- A string identifying the version of the current service.status
- The status code for this service (0 is 'available').statusMessage
- The service's status.public ServiceImpl(java.lang.String name, java.lang.String type, java.lang.String endpoint, java.lang.String version)
name
- The unique service ID.type
- The service type.endpoint
- The service endpoint.version
- A string identifying the version of the current service.Method Detail |
public java.lang.String toString()
public java.lang.String getEndpoint()
getEndpoint
in interface org.glite.discovery.Service
public java.lang.String getName()
getName
in interface org.glite.discovery.Service
public java.lang.String getType()
getType
in interface org.glite.discovery.Service
public java.lang.String getVersion()
getVersion
in interface org.glite.discovery.Service
public void setEndpoint(java.lang.String endpoint)
endpoint
- The service endpoint.public void setName(java.lang.String name)
name
- The unique service name.public void setType(java.lang.String type)
type
- The service type.public void setVersion(java.lang.String version)
version
- The service version as a String.public int getStatus()
getStatus
in interface org.glite.discovery.Service
public void setStatus(int status)
status
- The service status code (0 is 'available').public java.lang.String getStatusMessage()
getStatusMessage
in interface org.glite.discovery.Service
public void setStatusMessage(java.lang.String statusMessage)
statusMessage
- The service status message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |