public class SrvRegistry
extends java.lang.Object
Constructor and Description |
---|
SrvRegistry(GCUBEScope scope)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addService(Srv srv)
Add the given service
|
boolean |
addService(java.lang.String srvClass,
java.lang.String srvName)
Add the given service
|
boolean |
delService(Srv srv)
Delete given service
|
boolean |
delService(java.lang.String srvClass,
java.lang.String srvName)
Delete given service
|
protected ConsistencyManagerIF |
getConsistencyManagerImpl() |
org.apache.axis.message.addressing.EndpointReference[] |
getEPRsFor(Srv srv)
Get EPRs for the given service
|
org.apache.axis.message.addressing.EndpointReference[] |
getEPRsFor(Srv srv,
java.lang.String srvType)
Get EPRs for the given service
|
org.apache.axis.message.addressing.EndpointReference[] |
getEPRsFor(java.lang.String srvClass,
java.lang.String srvName)
Get EPRs for the given service
|
org.apache.axis.message.addressing.EndpointReference[] |
getEPRsFor(java.lang.String srvClass,
java.lang.String srvName,
java.lang.String srvType)
Get EPRs for the given service
|
protected GCUBEScope |
getScope() |
Srv |
getService(Srv srv)
Get all service information for the given service
|
Srv |
getService(java.lang.String srvClass,
java.lang.String srvName)
Get all service information for the given service
|
java.util.Set<Srv> |
getSrvs()
Get services
|
protected void |
setConsistencyManagerImpl(ConsistencyManagerIF cmi) |
protected void |
setScope(GCUBEScope scope) |
public SrvRegistry(GCUBEScope scope)
scope
- scopepublic Srv getService(Srv srv)
srv
- servicepublic Srv getService(java.lang.String srvClass, java.lang.String srvName)
srvClass
- service classsrvName
- service namepublic boolean addService(Srv srv)
srv
- service to be addedpublic boolean addService(java.lang.String srvClass, java.lang.String srvName)
srvClass
- class of the service to be addedsrvName
- name of the service to be addedpublic boolean delService(Srv srv)
srv
- servicepublic boolean delService(java.lang.String srvClass, java.lang.String srvName)
srvClass
- service classsrvName
- service namepublic org.apache.axis.message.addressing.EndpointReference[] getEPRsFor(Srv srv) throws java.lang.Exception
srv
- servicejava.lang.Exception
- in case of errorpublic org.apache.axis.message.addressing.EndpointReference[] getEPRsFor(java.lang.String srvClass, java.lang.String srvName) throws java.lang.Exception
srvClass
- service classsrvName
- service namejava.lang.Exception
- in case of errorpublic org.apache.axis.message.addressing.EndpointReference[] getEPRsFor(Srv srv, java.lang.String srvType) throws java.lang.Exception
srv
- servicesrvType
- service typejava.lang.Exception
- in case of errorpublic org.apache.axis.message.addressing.EndpointReference[] getEPRsFor(java.lang.String srvClass, java.lang.String srvName, java.lang.String srvType) throws java.lang.Exception
srvClass
- service classsrvName
- service namesrvType
- service typejava.lang.Exception
- in case of errorprotected ConsistencyManagerIF getConsistencyManagerImpl()
protected void setConsistencyManagerImpl(ConsistencyManagerIF cmi)
protected void setScope(GCUBEScope scope)
scope
- the scope to setprotected GCUBEScope getScope()