public class ServiceDescription
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESPONSE_TIME |
| Constructor and Description |
|---|
ServiceDescription(java.lang.String serviceName,
java.lang.String serviceEndpoint)
Constructor
|
ServiceDescription(java.lang.String serviceName,
java.lang.String serviceEndpoint,
int responseTime)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone a same Object
|
boolean |
containsOperation(java.lang.String opName)
Check this service has a specific operation or not
|
boolean |
equals(java.lang.Object obj)
Override the default "equals" method
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getCustomProperties()
Get custom properties of this service
|
Operation |
getOperation(java.lang.String opName)
Return operation
|
double |
getOperationCost(java.lang.String opName)
Get the cost of an operation
|
java.util.List<Operation> |
getOperationList()
Return service operations
|
int |
getRegisterID()
Return the register id
|
int |
getResponseTime()
Get response time if this service has custom property "RESPONSE_TIME"
|
java.lang.String |
getServiceEndpoint()
Return the service endpoint
|
java.lang.String |
getServiceName()
Return the service name
|
java.lang.String |
getServiceType()
Return the service type
|
int |
hashCode()
Override the default "hashCode" method
|
void |
setOperationCost(java.lang.String opName,
double cost)
Set the operation cost
|
void |
setOperationList(java.util.List<Operation> opList)
Set operation
|
void |
setRegisterID(int registerID)
Set the register id
|
void |
setResponseTime(int responseTime)
Set the response time
|
void |
setServiceEndpoint(java.lang.String serviceEndpoint)
Set the service endpoint
|
void |
setServiceName(java.lang.String serviceName)
Set the service name
|
void |
setServiceType(java.lang.String serviceType)
Set the service type
|
public static final java.lang.String RESPONSE_TIME
public ServiceDescription(java.lang.String serviceName,
java.lang.String serviceEndpoint,
int responseTime)
serviceName - the service nameserviceEndpoint - the service endpointresponseTime - the response timepublic ServiceDescription(java.lang.String serviceName,
java.lang.String serviceEndpoint)
serviceName - the service nameserviceEndpoint - the service endpointpublic int getRegisterID()
public void setRegisterID(int registerID)
registerID - the new register idpublic java.lang.String getServiceEndpoint()
public void setServiceEndpoint(java.lang.String serviceEndpoint)
serviceEndpoint - the service endpointpublic java.lang.String getServiceType()
public void setServiceType(java.lang.String serviceType)
serviceType - the new service typepublic java.lang.String getServiceName()
public void setServiceName(java.lang.String serviceName)
serviceName - the new service namepublic java.util.List<Operation> getOperationList()
public boolean containsOperation(java.lang.String opName)
opName - the operation namepublic void setOperationList(java.util.List<Operation> opList)
opList - list of operationspublic Operation getOperation(java.lang.String opName)
opName - the operation namepublic java.util.HashMap<java.lang.String,java.lang.Object> getCustomProperties()
public int getResponseTime()
public void setResponseTime(int responseTime)
responseTime - the new response timepublic double getOperationCost(java.lang.String opName)
opName - the operation namepublic void setOperationCost(java.lang.String opName,
double cost)
opName - the operation namecost - the new operation costpublic java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object