|
|||||||||
| 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 ServiceComponent

java.lang.Objectorg.mobicents.slee.container.service.ServiceComponent
- All Implemented Interfaces:
- org.mobicents.slee.container.management.DeployedComponent, java.io.Serializable
- public class ServiceComponent
- extends java.lang.Object
- implements org.mobicents.slee.container.management.DeployedComponent, java.io.Serializable
- extends java.lang.Object
This represents the service component - the static part of a service including the descriptor and service state. This resides in the deployment cache. The state in this object is persisted to disk and must survive SLEE restarts. This structure includes the UsageMBeans and pointer to the Service Descriptor.
| Field Summary | |
private DeployableUnitID |
deployableUnitID
|
private static org.jboss.logging.Logger |
logger
|
private boolean |
pendingRemove
|
private java.util.HashSet |
sbbComponents
|
private org.mobicents.slee.container.management.ServiceDescriptorImpl |
serviceDescriptor
|
private org.mobicents.slee.container.management.ServiceIDImpl |
serviceID
|
private ServiceState |
serviceState
|
private javax.management.ObjectName |
usageMBean
|
private java.util.HashMap |
usageParameterNames
|
private java.util.HashMap |
usageParameterObjectNames
|
| Constructor Summary | |
ServiceComponent(org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptor)
|
|
| Method Summary | |
void |
checkDeployment()
|
private void |
enumerateSbbs(SbbID sbbId)
|
java.util.HashSet |
getAllUsageParameterNames()
Get the names of all usage parameters. |
DeployableUnitID |
getDeployableUnit()
Return the deployable unit id for this service |
java.lang.String[] |
getNamedUsageParameterSets(SbbID sbbId)
Return the set of named usage parameter names as an array. |
org.mobicents.slee.container.management.SbbDescriptorImpl |
getRootSbbComponent()
Get the root sbb component for the service |
java.util.Iterator |
getSbbUsageMBeans()
Returns an iterator with all the usage parameter names. |
org.mobicents.slee.container.management.ServiceDescriptorImpl |
getServiceDescriptor()
|
ServiceID |
getServiceID()
Get the service id for this service component. |
ServiceState |
getState()
Returns the service state. |
javax.management.ObjectName |
getUsageMBean()
|
javax.management.ObjectName |
getUsageParameterObjectName(SbbID sbbId)
|
javax.management.ObjectName |
getUsageParameterObjectName(SbbID sbbId,
java.lang.String name)
|
void |
installDefaultUsageParameters(org.mobicents.slee.container.management.SbbDescriptorImpl descriptor)
Installs the default usage parameter set. |
void |
installUsageParameter(SbbID sbbId,
java.lang.String name)
Install a usage parameter set. |
boolean |
isComponent(SbbID sbbId)
|
boolean |
isMarkedForRemove()
Return true if marked for GC. |
void |
markForRemove()
Mark for garbage collection. |
protected void |
registerSbbUsageParameter(ServiceID serviceId,
SbbID sbbId,
javax.management.ObjectName sbbUsageParameter)
|
private void |
registerSbbUsageParameter(ServiceID serviceId,
SbbID sbbId,
java.lang.String name,
javax.management.ObjectName sbbUsageParameter)
|
void |
removeUsageParameter(SbbID sbbId,
java.lang.String name)
Remove the usage parameter object and unregister the mbean for the usage parameter object. |
void |
setDeployableUnit(DeployableUnitID deployableUnitID)
|
void |
setState(ServiceState serviceState)
Set the service state. |
void |
setUsageMBeanName(javax.management.ObjectName usageMBean)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serviceID
private org.mobicents.slee.container.management.ServiceIDImpl serviceID
serviceState
private ServiceState serviceState
logger
private static org.jboss.logging.Logger logger
deployableUnitID
private DeployableUnitID deployableUnitID
usageMBean
private javax.management.ObjectName usageMBean
pendingRemove
private boolean pendingRemove
serviceDescriptor
private transient org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptor
usageParameterNames
private java.util.HashMap usageParameterNames
usageParameterObjectNames
private java.util.HashMap usageParameterObjectNames
sbbComponents
private java.util.HashSet sbbComponents
| Constructor Detail |
ServiceComponent
public ServiceComponent(org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptor)
| Method Detail |
enumerateSbbs
private void enumerateSbbs(SbbID sbbId)
getAllUsageParameterNames
public java.util.HashSet getAllUsageParameterNames()
- Get the names of all usage parameters.
registerSbbUsageParameter
protected void registerSbbUsageParameter(ServiceID serviceId,
SbbID sbbId,
javax.management.ObjectName sbbUsageParameter)
registerSbbUsageParameter
private void registerSbbUsageParameter(ServiceID serviceId,
SbbID sbbId,
java.lang.String name,
javax.management.ObjectName sbbUsageParameter)
getUsageParameterObjectName
public javax.management.ObjectName getUsageParameterObjectName(SbbID sbbId)
getUsageParameterObjectName
public javax.management.ObjectName getUsageParameterObjectName(SbbID sbbId, java.lang.String name) throws UnrecognizedUsageParameterSetNameException, InvalidArgumentException
installUsageParameter
public void installUsageParameter(SbbID sbbId,
java.lang.String name)
throws java.lang.Exception
- Install a usage parameter set.
installDefaultUsageParameters
public void installDefaultUsageParameters(org.mobicents.slee.container.management.SbbDescriptorImpl descriptor) throws java.lang.Exception
- Installs the default usage parameter set.
removeUsageParameter
public void removeUsageParameter(SbbID sbbId,
java.lang.String name)
throws ManagementException,
UnrecognizedUsageParameterSetNameException,
UnrecognizedSbbException,
InvalidArgumentException
- Remove the usage parameter object and unregister the mbean for the usage
parameter object.
getNamedUsageParameterSets
public java.lang.String[] getNamedUsageParameterSets(SbbID sbbId) throws InvalidArgumentException
- Return the set of named usage parameter names as an array.
getSbbUsageMBeans
public java.util.Iterator getSbbUsageMBeans()
- Returns an iterator with all the usage parameter names.
getDeployableUnit
public DeployableUnitID getDeployableUnit()
- Return the deployable unit id for this service
- Specified by:
getDeployableUnitin interfaceorg.mobicents.slee.container.management.DeployedComponent
setDeployableUnit
public void setDeployableUnit(DeployableUnitID deployableUnitID)
- Specified by:
setDeployableUnitin interfaceorg.mobicents.slee.container.management.DeployedComponent
setState
public void setState(ServiceState serviceState)
- Set the service state.
getState
public ServiceState getState()
- Returns the service state.
getServiceID
public ServiceID getServiceID()
- Get the service id for this service component.
getServiceDescriptor
public org.mobicents.slee.container.management.ServiceDescriptorImpl getServiceDescriptor()
getRootSbbComponent
public org.mobicents.slee.container.management.SbbDescriptorImpl getRootSbbComponent()
- Get the root sbb component for the service
setUsageMBeanName
public void setUsageMBeanName(javax.management.ObjectName usageMBean)
getUsageMBean
public javax.management.ObjectName getUsageMBean()
markForRemove
public void markForRemove()
- Mark for garbage collection.
isMarkedForRemove
public boolean isMarkedForRemove()
- Return true if marked for GC.
checkDeployment
public void checkDeployment()
throws DeploymentException
- Specified by:
checkDeploymentin interfaceorg.mobicents.slee.container.management.DeployedComponent
isComponent
public boolean isComponent(SbbID sbbId)
|
|||||||||
| 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
org.mobicents.slee.container.service.ServiceComponent