public class ServiceRegistry extends AtomicService implements ServiceRegistryInterface
DEBUGADDRESS, NAME| Constructor and Description |
|---|
ServiceRegistry()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllServices()
Return list of service names
|
java.util.List<ServiceDescription> |
lookup(java.lang.String type,
java.lang.String opName)
Look up list of services with service type and operation
|
static void |
main(java.lang.String[] args) |
int |
register(ServiceDescription description)
Register a service with its description
|
void |
unRegister(int registerID)
Unregister a service with its register id
|
void |
update(ServiceDescription description)
Update service description
|
addServiceProfile, getServiceProfiles, invokeOperation, removeServiceProfile, removeServiceProfilegetConfiguration, getServiceDescription, onMessage, register, sendRequest, sendRequest, setServiceDescription, startService, stopService, unRegister, updateServiceDescriptionpublic java.util.List<java.lang.String> getAllServices()
public int register(ServiceDescription description)
ServiceRegistryInterfaceregister in interface ServiceRegistryInterfacedescription - the service descriptionpublic void unRegister(int registerID)
ServiceRegistryInterfaceunRegister in interface ServiceRegistryInterfaceregisterID - the unique register idpublic java.util.List<ServiceDescription> lookup(java.lang.String type, java.lang.String opName)
ServiceRegistryInterfacelookup in interface ServiceRegistryInterfacetype - the service typeopName - the operation namepublic void update(ServiceDescription description)
description - the new service descriptionpublic static void main(java.lang.String[] args)