|
|||||||||
| Home >> All >> org >> mobicents >> slee >> container >> [ service overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mobicents.slee.container.service
Class Service

java.lang.Objectorg.mobicents.slee.runtime.Cacheable
org.mobicents.slee.container.service.Service
- All Implemented Interfaces:
- java.io.Serializable
- public class Service
- extends org.mobicents.slee.runtime.Cacheable
- implements java.io.Serializable
- extends org.mobicents.slee.runtime.Cacheable
Service implementation. This is the run-time representation of the service Represents an instance of a Slee Service. Note that in the SLEE, the Service is a management artifact.
| Field Summary | |
private static java.lang.String |
CHILD_OBJ
|
private java.util.Map |
childObj
|
private java.lang.String |
DEFAULT_PRIORITY
|
private byte |
defaultPriority
|
(package private) boolean |
isRemoved
|
private static org.jboss.logging.Logger |
logger
|
private org.mobicents.slee.container.management.SbbDescriptorImpl |
rootSbbComponent
|
private static java.lang.String |
SERVICE_ACTIVITY_CONTEXT_ID
|
private java.lang.String |
SERVICE_ID
|
private org.mobicents.slee.runtime.serviceactivity.ServiceActivityImpl |
serviceActivity
|
private java.lang.String |
serviceActivityContextId
|
private org.mobicents.slee.container.management.ServiceIDImpl |
serviceID
|
private boolean |
transactionalActionAdded
|
private static java.lang.String |
USAGE_PARAMETERS
|
private java.util.HashMap |
usageParameters
|
| Fields inherited from class org.mobicents.slee.runtime.Cacheable |
PATH_SEPARATOR |
| Constructor Summary | |
Service()
|
|
Service(org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptor)
|
|
| Method Summary | |
org.mobicents.slee.runtime.SbbEntity |
addChild(java.lang.String convergenceName,
org.mobicents.slee.runtime.SleeEvent sleeEvent)
Add a child for a given convergence name. |
(package private) void |
addTransactionalActions()
|
protected void |
addUsageParameter(java.lang.String pathName,
java.lang.Object usageParam)
|
java.util.Iterator |
getAllUsageParameters()
Return an iterator containing the InstalledUsageParameterSet s for this service. |
java.util.Collection |
getChildObj()
Get the set of child relation objects for the service. |
java.util.Set |
getConvergenceNames()
|
int |
getDefaultPriority()
get the default priority. |
org.mobicents.slee.container.management.InstalledUsageParameterSet |
getDefaultUsageParameterSet(SbbID sbbId)
Return the default usage parameter set for the given sbb id. |
org.mobicents.slee.container.management.InstalledUsageParameterSet |
getNamedUsageParameter(SbbID sbbId,
java.lang.String name)
Return the named usage parameter set given the sbb id and name of the set. |
java.lang.String |
getNodeName()
|
java.lang.String |
getRootSbbEntityId(java.lang.String convergenceName)
|
org.mobicents.slee.runtime.serviceactivity.ServiceActivityImpl |
getServiceActivity()
|
java.lang.String |
getServiceActivityContextId()
Retrieves the service activity context id. |
private ServiceComponent |
getServiceComponent()
Get the service descriptor. |
ServiceID |
getServiceID()
get the component key for the service component from which this service was created. |
static java.lang.String |
getUsageParametersPathName(ServiceID serviceId,
SbbID sbbId)
|
static java.lang.String |
getUsageParametersPathName(ServiceID serviceID,
SbbID sbbId,
java.lang.String name)
|
java.util.HashMap |
getUsageParameterTable()
Get the table that maps usage parameter name to usage parameter class instance. |
boolean |
hasCachedImage()
Return true if a cached image is found |
void |
loadFromCache()
|
void |
removeAllConvergenceNames()
|
void |
removeConvergenceName(java.lang.String name)
|
void |
removeFromCache()
Remove my cached image. |
protected void |
removeUsageParameter(java.lang.String pathName)
|
void |
sendEndActivityEvents()
Deliver an end activityEvent to all the listeners of the service activity. |
void |
setDefaultPriority(byte priority)
Set the default priority of the service |
(package private) void |
setTransactionalActionAdded(boolean added)
|
void |
stop()
|
void |
storeToCache()
|
| Methods inherited from class org.mobicents.slee.runtime.Cacheable |
addElementToCachedSet, addSetElementInsideTheMap, getBooleanFromCache, getByteFromCache, getMapFromCache, getObjectFromCache, getSetFromCache, loadMapSet, loadMapSet, nodeExists, putBooleanInCache, putByteInCache, putMapInCache, putObjectInCache, putSetToCache, removeElementFromCachedSet, removeMapEntry, removeNode, removeSetElementInsideTheMap, storeMapSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DEFAULT_PRIORITY
private java.lang.String DEFAULT_PRIORITY
defaultPriority
private byte defaultPriority
serviceActivity
private volatile org.mobicents.slee.runtime.serviceactivity.ServiceActivityImpl serviceActivity
SERVICE_ID
private java.lang.String SERVICE_ID
serviceID
private org.mobicents.slee.container.management.ServiceIDImpl serviceID
logger
private static org.jboss.logging.Logger logger
CHILD_OBJ
private static java.lang.String CHILD_OBJ
childObj
private java.util.Map childObj
rootSbbComponent
private org.mobicents.slee.container.management.SbbDescriptorImpl rootSbbComponent
isRemoved
boolean isRemoved
USAGE_PARAMETERS
private static final java.lang.String USAGE_PARAMETERS
- See Also:
- Constant Field Values
usageParameters
private java.util.HashMap usageParameters
transactionalActionAdded
private boolean transactionalActionAdded
serviceActivityContextId
private java.lang.String serviceActivityContextId
SERVICE_ACTIVITY_CONTEXT_ID
private static final java.lang.String SERVICE_ACTIVITY_CONTEXT_ID
- See Also:
- Constant Field Values
| Constructor Detail |
Service
public Service()
Service
public Service(org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptor) throws java.lang.RuntimeException
| Method Detail |
getUsageParametersPathName
public static java.lang.String getUsageParametersPathName(ServiceID serviceId, SbbID sbbId)
getUsageParametersPathName
public static java.lang.String getUsageParametersPathName(ServiceID serviceID, SbbID sbbId, java.lang.String name)
addTransactionalActions
void addTransactionalActions()
throws java.lang.RuntimeException
setTransactionalActionAdded
void setTransactionalActionAdded(boolean added)
throws java.lang.RuntimeException
stop
public void stop()
hasCachedImage
public boolean hasCachedImage()
throws java.lang.Exception
- Return true if a cached image is found
loadFromCache
public void loadFromCache()
throws java.lang.Exception
storeToCache
public void storeToCache()
throws javax.transaction.SystemException
getNodeName
public java.lang.String getNodeName()
getServiceID
public ServiceID getServiceID()
- get the component key for the service component from which this service
was created.
getDefaultPriority
public int getDefaultPriority()
- get the default priority.
setDefaultPriority
public void setDefaultPriority(byte priority)
- Set the default priority of the service
getChildObj
public java.util.Collection getChildObj()
- Get the set of child relation objects for the service.
getConvergenceNames
public java.util.Set getConvergenceNames()
getServiceComponent
private ServiceComponent getServiceComponent()
- Get the service descriptor.
addChild
public org.mobicents.slee.runtime.SbbEntity addChild(java.lang.String convergenceName, org.mobicents.slee.runtime.SleeEvent sleeEvent) throws CreateException
- Add a child for a given convergence name.
sendEndActivityEvents
public void sendEndActivityEvents()
- Deliver an end activityEvent to all the listeners of the service
activity.
getRootSbbEntityId
public java.lang.String getRootSbbEntityId(java.lang.String convergenceName)
removeConvergenceName
public void removeConvergenceName(java.lang.String name)
removeAllConvergenceNames
public void removeAllConvergenceNames()
getServiceActivity
public org.mobicents.slee.runtime.serviceactivity.ServiceActivityImpl getServiceActivity()
removeFromCache
public void removeFromCache()
throws javax.transaction.SystemException
- Remove my cached image.
getServiceActivityContextId
public java.lang.String getServiceActivityContextId()
- Retrieves the service activity context id.
getUsageParameterTable
public java.util.HashMap getUsageParameterTable()
- Get the table that maps usage parameter name to usage parameter class
instance.
getDefaultUsageParameterSet
public org.mobicents.slee.container.management.InstalledUsageParameterSet getDefaultUsageParameterSet(SbbID sbbId)
- Return the default usage parameter set for the given sbb id.
getNamedUsageParameter
public org.mobicents.slee.container.management.InstalledUsageParameterSet getNamedUsageParameter(SbbID sbbId, java.lang.String name)
- Return the named usage parameter set given the sbb id and name of the
set.
getAllUsageParameters
public java.util.Iterator getAllUsageParameters()
- Return an iterator containing the InstalledUsageParameterSet s for this
service.
removeUsageParameter
protected void removeUsageParameter(java.lang.String pathName)
addUsageParameter
protected void addUsageParameter(java.lang.String pathName, java.lang.Object usageParam)
|
|||||||||
| Home >> All >> org >> mobicents >> slee >> container >> [ service overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC