|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.txbridge.ba.service.ServiceInformationManager
public class ServiceInformationManager
This class is responsible for caching information about service descriptions. It associates its description with a unique identifier of a service.
Field Summary | |
---|---|
private static ServiceInformationManager |
cim
|
private IdentifierFactory |
idf
|
private static org.apache.log4j.Logger |
log
|
private java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> |
methodServiceIdMapping
|
private java.util.concurrent.ConcurrentMap<java.lang.String,ServiceDescription> |
serviceDescriptions
|
Constructor Summary | |
---|---|
private |
ServiceInformationManager()
|
Method Summary | |
---|---|
ServiceDescription |
getServiceById(java.lang.String serviceId)
This method returns the service description for a service with a given identifier. |
ServiceDescription |
getServiceByName(java.lang.String completeMethodName)
This method returns the service description for a service with a given identifier. |
java.lang.String |
getServiceId(java.lang.String completeMethodName)
This method returns the ID for the service with a given class name and given method name. |
static ServiceInformationManager |
getSingletonInstance()
|
boolean |
knowsAboutById(java.lang.String serviceId)
This method checks if the service information manager already knows of a service with a given identifier. |
boolean |
knowsAboutByName(java.lang.String serviceName)
This method checks if the service information manager already knows of a service with a given identifier. |
java.lang.String |
storeServiceDescription(ServiceDescription serviceDescription)
This method stores a service description. |
private void |
storeServiceDescription(java.lang.String serviceId,
java.lang.String completeMethodName,
ServiceDescription serviceDescription)
This method stores a service description for a service with a given completeTask name and returns a unique associated service ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger log
private static volatile ServiceInformationManager cim
private IdentifierFactory idf
private java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> methodServiceIdMapping
private java.util.concurrent.ConcurrentMap<java.lang.String,ServiceDescription> serviceDescriptions
Constructor Detail |
---|
private ServiceInformationManager()
Method Detail |
---|
public static ServiceInformationManager getSingletonInstance()
public java.lang.String storeServiceDescription(ServiceDescription serviceDescription)
serviceDescription
- is the service description that needs to be stored.
private void storeServiceDescription(java.lang.String serviceId, java.lang.String completeMethodName, ServiceDescription serviceDescription)
serviceId
- is the unique service Id.completeMethodName
- is the completeTask method's name.serviceDescription
- is the service description.public ServiceDescription getServiceByName(java.lang.String completeMethodName)
completeMethodName
- is the completeTask method name (classname+methodname)
public ServiceDescription getServiceById(java.lang.String serviceId)
serviceId
- is the ID of the service.
public java.lang.String getServiceId(java.lang.String completeMethodName)
completeMethodName
- is the completeTask method name (classname+methodname)
public boolean knowsAboutById(java.lang.String serviceId)
serviceId
- is the service identifier.
public boolean knowsAboutByName(java.lang.String serviceName)
serviceName
- is the full name of the service (class name + method name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |