|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.impl.Registry
Urd ServiceRegistry implementation.
| Field Summary |
| Fields inherited from interface net.larsan.norna.ServiceRegistry |
NAMESPACE_ID |
| Constructor Summary | |
Registry(javax.naming.Context rootContext)
Create a registry based on a root context. |
|
| Method Summary | |
void |
addRegistryListener(java.util.Properties filter,
RegistryListener listener)
Get a service by id. |
void |
addRegistryListener(RegistryListener listener)
Please refer to to the Norna ServiceRegistry
documentation. |
java.util.Iterator |
getByPublicID(java.lang.String ID)
Get a service by id. |
ServiceHandle |
getByURL(java.lang.String url)
Get a service by url. |
Environment |
getEnvironment()
Please refer to to the Norna ServiceRegistry
documentation. |
SoftwareInfo |
getSoftwareInfo(java.lang.String url)
Get a service info url. |
java.util.Iterator |
list()
Get a service listing. |
void |
removeRegistryListener(RegistryListener listener)
Get a service by id. |
java.util.Iterator |
search(java.util.Properties attributes)
Search for a service. |
void |
start(java.lang.String url)
Start a service. |
void |
stop(java.lang.String url)
Stop a service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Registry(javax.naming.Context rootContext)
throws javax.naming.NamingException
rootContext - Context to use, must not be null| Method Detail |
public Environment getEnvironment()
ServiceRegistry
documentation.
getEnvironment in interface ServiceRegistrypublic void addRegistryListener(RegistryListener listener)
ServiceRegistry
documentation.
addRegistryListener in interface ServiceRegistrylistener - Register listener
public void addRegistryListener(java.util.Properties filter,
RegistryListener listener)
ServiceRegistry
documentation.
addRegistryListener in interface ServiceRegistryfilter - Event filter propertieslistener - Register listenerpublic void removeRegistryListener(RegistryListener listener)
ServiceRegistry
documentation.
removeRegistryListener in interface ServiceRegistrylistener - Listener to removepublic java.util.Iterator getByPublicID(java.lang.String ID)
ServiceRegistry
documentation.
getByPublicID in interface ServiceRegistryID - Service id as returned by getPublicID
public ServiceHandle getByURL(java.lang.String url)
ServiceRegistry
documentation.
getByURL in interface ServiceRegistryurl - Service context URL
ServiceHandle to the a service, or null if not found or not ready
public java.util.Iterator search(java.util.Properties attributes)
throws java.util.regex.PatternSyntaxException
ServiceRegistry
documentation.
search in interface ServiceRegistryattributes - Search attributes matching property names to regular expressions
java.util.regex.PatternSyntaxException - If any regexp patter is invalidpublic java.util.Iterator list()
ServiceRegistry
documentation.
list in interface ServiceRegistrypublic SoftwareInfo getSoftwareInfo(java.lang.String url)
ServiceRegistry
documentation.
getSoftwareInfo in interface ServiceRegistryurl - Service context URL as a string
SoftwareInfo object for the service, or null if not found
public void start(java.lang.String url)
throws NoSuchServiceException
ServiceRegistry
documentation.
start in interface ServiceRegistryurl - Service context URL as a string
NoSuchServiceException - If no service with the nuid is found
public void stop(java.lang.String url)
throws NoSuchServiceException
ServiceRegistry
documentation.
stop in interface ServiceRegistryurl - Service context URL as a string
NoSuchServiceException - If no service with the nuid is found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||