public abstract class AtomicService extends AbstractService
DEBUG| Constructor and Description |
|---|
AtomicService(java.lang.String serviceName,
java.lang.String serviceEndpoint)
Constructor
|
AtomicService(java.lang.String serviceName,
java.lang.String serviceEndpoint,
int responseTime)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceProfile(ServiceProfile serviceProfile)
Add a service profile to the list
|
java.util.List<ServiceProfile> |
getServiceProfiles()
Get the list of service profiles
|
java.lang.Object |
invokeOperation(java.lang.String opName,
Param[] params)
Invoke service operation
|
void |
removeServiceProfile(int index)
Remove a service profile from the list with the unique index
|
void |
removeServiceProfile(ServiceProfile serviceProfile)
Remove a service profile from the list
|
getConfiguration, getServiceDescription, onMessage, register, sendRequest, sendRequest, setServiceDescription, startService, stopService, unRegister, updateServiceDescriptionpublic AtomicService(java.lang.String serviceName,
java.lang.String serviceEndpoint,
int responseTime)
serviceName - the service nameserviceEndpoint - the source endpointresponseTime - the response time for incoming messagespublic AtomicService(java.lang.String serviceName,
java.lang.String serviceEndpoint)
serviceName - the service nameserviceEndpoint - the source endpointpublic void removeServiceProfile(int index)
index - the profile indexpublic void removeServiceProfile(ServiceProfile serviceProfile)
serviceProfile - the service profilepublic void addServiceProfile(ServiceProfile serviceProfile)
serviceProfile - the service profilepublic java.util.List<ServiceProfile> getServiceProfiles()
public java.lang.Object invokeOperation(java.lang.String opName,
Param[] params)
AbstractServiceinvokeOperation in class AbstractServiceopName - the operation nameparams - arguments of the operation