Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mobicents.slee.container
Class SleeContainer  view SleeContainer download SleeContainer.java

java.lang.Object
  extended byorg.mobicents.slee.container.SleeContainer
All Implemented Interfaces:
org.mobicents.slee.container.management.ComponentContainer

public class SleeContainer
extends java.lang.Object
implements org.mobicents.slee.container.management.ComponentContainer

Implements the SleeContainer. The SleeContainer is the anchor for the Slee. It is the central location from where all other major data structures are accessible.


Nested Class Summary
private  class SleeContainer.DeploymentCacheManager
           
 
Field Summary
private  org.mobicents.slee.runtime.ActivityContextFactoryImpl activityContextFactory
           
private  java.util.HashMap activityContextInterfaceFactories
           
private  org.mobicents.slee.runtime.facilities.ActivityContextNamingFacilityImpl activityContextNamingFacility
           
private  org.mobicents.slee.resource.ResourceAdaptorContext bootstrapContext
           
static java.lang.String COMP_ENV
          standard ENC name in JNDI
private static java.lang.String CTX_SLEE
          the root context for SLEE
static java.lang.String DEPLOY_PATH
           
private  SleeContainer.DeploymentCacheManager deploymentCacheManager
           
private  org.mobicents.slee.container.management.DeploymentManager deploymentManager
           
private  java.util.HashMap eventKeyToEventTypeIDMap
           
private  org.mobicents.slee.resource.EventLookup eventLookup
           
private  java.util.HashMap eventTypeIDs
           
private  java.util.HashMap eventTypeIDToDescriptor
           
private  java.util.HashMap eventTypeIDToEventKeyMap
           
private  java.util.HashMap installedResourceAdaptors
           
private static java.lang.String JNDI_NAME
           
static java.lang.String JVM_ENV
           
private  java.lang.ClassLoader loader
           
private static org.jboss.logging.Logger logger
           
private  javax.management.MBeanServer mbeanServer
           
private  org.mobicents.slee.runtime.facilities.NullActivityContextInterfaceFactoryImpl nullActivityContextInterfaceFactory
           
private  org.mobicents.slee.runtime.facilities.NullActivityFactoryImpl nullActivityFactory
           
private  org.mobicents.slee.runtime.facilities.ProfileTableActivityContextInterfaceFactoryImpl profileTableActivityContextInterfaceFactory
           
private  java.util.HashMap raEntityProperties
           
private  java.util.HashMap resourceAdaptorEntities
           
private  java.util.HashMap resourceAdaptorEntityLinks
           
private  java.util.HashMap resourceAdaptorTypes
          Resource Container
private  org.jboss.ha.framework.server.HARMIServerImpl rmiServer
           
private  org.mobicents.slee.runtime.EventRouter router
           
private  org.mobicents.slee.runtime.SbbEntityFactory sbbEntityFactory
           
private  java.util.HashMap sbbPooling
           
private static java.lang.String SERVICEACTIVITY_FACTORY_JNDI_NAME
           
private static java.lang.String SERVICEACTIVITYACI_FACTORY_JNDI_NAME
           
private  org.mobicents.slee.runtime.serviceactivity.ServiceActivityContextInterfaceFactoryImpl serviceActivityContextInterfaceFactory
           
private  org.mobicents.slee.runtime.serviceactivity.ServiceActivityFactoryImpl serviceActivityFactory
           
private  ServiceManagementMBean serviceManagementMBean
           
private  org.mobicents.slee.runtime.SleeInternalEndpoint sleeEndpoint
           
private  SleeState sleeState
          The lifecycle state of the SLEE
private  TransactionIDAccess transactionIDAccess
           
 
Constructor Summary
SleeContainer(javax.management.MBeanServer mbserver)
          Creates a new instance of SleeContainer -- This is called from the SleeManagementMBean to get the whole thing running.
 
Method Summary
 void activateResourceAdaptorEntity(java.lang.String name)
          Activate a resource adaptor entity given its name.
 void addActivityContextInterfaceFactory(ComponentID key, org.mobicents.slee.resource.TCKActivityContextInterfaceFactoryImpl acif)
           
 void addDeployableUnit(DeployableUnitDescriptor descriptor)
          Register a deployable unit given its descriptor.
private  void addProfileComponent(org.mobicents.slee.container.management.ProfileSpecificationDescriptorImpl profileSpecificationDescriptorImpl)
           
private  void addReferringComponent(ComponentID componentID, ComponentID referringComponent)
          Add a referring component to a given component ID.
private  void addReferringDU(ComponentID cid, DeployableUnitID duid)
           
 void addResourceAdaptorType(ResourceAdaptorTypeID key, org.mobicents.slee.resource.ResourceAdaptorType rat)
           
private  void addSbbComponent(SbbDescriptor sbbComponent)
           
private  void addService(ServiceID serviceID, org.mobicents.slee.container.service.ServiceComponent service)
          Add a service to the service container and set its state to active.
 boolean checkServiceExists(ServiceID serviceID)
           
private  void cleanSleeCache()
          Clean up the JBoss TreeCache branch for the SLEE.
 void close()
          Cleanup in the reverse order of init()
 void closeTckResourceAdaptor()
          Reverses the result of
 org.mobicents.slee.resource.ResourceAdaptorEntity createResourceAdaptorEntity(org.mobicents.slee.container.management.ResourceAdaptorIDImpl id, java.lang.String name, java.util.Properties properties)
           
 void createResourceAdaptorEntityLink(java.lang.String link, java.lang.String entityName)
           
 void deactivateResourceAdaptorEntity(java.lang.String name)
          Deactivate a resource adaptor.
private  void deployStandardEvents()
          These are slee defined events.
private  void deployStandardProfileSpecs()
          These are slee defined profiles.
 void doRemove(org.mobicents.slee.container.management.DeployableUnitDescriptorImpl deployableUnitDescriptor)
          Actually do the unistall.
 int getActivityContextCount()
          check the number of activity contexts.
 org.mobicents.slee.runtime.ActivityContextFactoryImpl getActivityContextFactory()
           
 java.util.HashMap getActivityContextInterfaceFactories()
           
 javax.slee.facilities.ActivityContextNamingFacility getActivityContextNamingFacility()
           
 org.mobicents.slee.runtime.facilities.AlarmFacilityImpl getAlarmFacility()
           
 org.mobicents.slee.resource.ResourceAdaptorContext getBootstrapContext()
           
 java.lang.ClassLoader getClassLoader()
           
 ComponentDescriptor getComponentDescriptor(ComponentID componentId)
          Get the descriptor of a component given its component ID
private  java.util.HashMap getComponentIDToDeployableUnitIDMap()
           
 DeployableUnitDescriptor getDeployableUnitDescriptor(DeployableUnitID deployableUnitID)
          Get the deployable unit descriptor for a given deployable unit.
 DeployableUnitDescriptor[] getDeployableUnitDescriptors()
           
 DeployableUnitID getDeployableUnitIDFromUrl(java.lang.String deploymentUrl)
          Return the deployable Unit id given the url string from where it was loaded.
private  java.util.HashMap getDeployableUnitIDtoDescriptorMap()
           
 DeployableUnitID[] getDeployableUnits()
          Get an array containing the deployable unit ids known to the container.
private  SleeContainer.DeploymentCacheManager getDeploymentCacheManager()
          Note we dont need a per tx deployment cache because there is only one tx that ever writes to the deployment cache.
 ComponentDescriptor[] getDescriptors(ComponentID[] componentIds)
          Return a list of component descriptors for the given list of component ids.
 org.mobicents.slee.container.management.EventTypeDescriptorImpl getEventDescriptor(EventTypeID id)
           
 org.mobicents.slee.container.management.ComponentKey getEventKey(org.mobicents.slee.container.management.EventTypeIDImpl eventTypeId)
          This is only for debugging.
 org.mobicents.slee.resource.EventLookup getEventLookupFacility()
           
 org.mobicents.slee.container.management.EventTypeIDImpl getEventType(org.mobicents.slee.container.management.ComponentKey componentKey)
           
 org.mobicents.slee.container.management.EventTypeIDImpl getEventTypeID(int eventID)
          Get the event type id given the eventID
 EventTypeID[] getEventTypes()
           
private static java.lang.Object getFromJndi(java.lang.String resourceName)
          lookup a name reference from jndi.
 org.mobicents.slee.resource.InstalledResourceAdaptor getInstalledResourceAdaptor(ResourceAdaptorID raId)
           
 javax.management.MBeanServer getMBeanServer()
          Return the MBeanServer that the SLEEE is registers with in the current JVM
 org.mobicents.slee.runtime.facilities.NullActivityContextInterfaceFactoryImpl getNullActivityContextInterfaceFactory()
          get the null activity context interface factory.
 org.mobicents.slee.runtime.facilities.NullActivityFactoryImpl getNullActivityFactory()
           
 org.apache.commons.pool.ObjectPool getObjectPool(SbbID sbbid)
          get the ObjectPool for this Sbb.
private  java.util.HashMap getProfileComponents()
           
static ProfileFacility getProfileFacility()
           
 ProfileSpecificationID[] getProfileSpecificationIDs()
          Get a list of profiles known to me
 java.lang.String getRAActivityContextInterfaceFactoryJNDIName(ResourceAdaptorTypeID resourceAdapterTypeId)
           
 org.mobicents.slee.resource.ResourceAdaptorEntity getRAEntity(java.lang.String link, org.mobicents.slee.resource.ResourceAdaptorType raType)
           
 java.lang.String getRAEntityFactoryInterfaceJNDIName(java.lang.String link)
           
 java.lang.String getRAEntityInterfaceJNDIName(java.lang.String link)
           
private  java.util.HashMap getReferringComponents()
           
 org.mobicents.slee.container.management.ComponentIDImpl[] getReferringComponents(ComponentID referredComponent)
          This is called by our management interface.
 DeployableUnitDescriptor getResourceAdaptorDescriptor(DeployableUnitID deployableUnitID)
           
 java.util.HashMap getResourceAdaptorEnitities()
           
 org.mobicents.slee.resource.ResourceAdaptorEntity getResourceAdaptorEnitity(java.lang.String enitityName)
           
 org.mobicents.slee.resource.ResourceAdaptorEntity getResourceAdaptorEntity(ResourceAdaptorTypeID raTypeID)
          get a resource adaptor entity given its name.
 org.mobicents.slee.container.management.ResourceAdaptorIDImpl[] getResourceAdaptorIDs()
          Get an array of the resource adaptor IDs.
 org.mobicents.slee.resource.ResourceAdaptorType getResourceAdaptorType(ResourceAdaptorTypeID key)
           
 ResourceAdaptorTypeID[] getResourceAdaptorTypeIDs()
          Get an array containing the RA types.
 java.util.HashMap getResourceAdaptorTypes()
           
 int getRmiRegistryPort()
           
 SbbDescriptor getSbbComponent(SbbID sbbComponentId)
           
private  java.util.HashMap getSbbComponents()
           
 org.mobicents.slee.runtime.SbbEntityFactory getSbbEntityFactory()
           
 org.mobicents.slee.container.management.SbbIDImpl[] getSbbIDs()
          Get the sbb components
 org.mobicents.slee.container.service.Service getService(ServiceID serviceId)
          Geta service give its service id
 org.mobicents.slee.runtime.serviceactivity.ServiceActivityContextInterfaceFactoryImpl getServiceActivityContextFactory()
           
 org.mobicents.slee.container.service.ServiceComponent getServiceComponent(ServiceID svc)
           
 java.util.HashMap getServiceComponents()
           
 ServiceID[] getServiceIDs()
          Get a list of services known to me
 ServiceManagementMBean getServiceManagementMBean()
          Get the service management MBean
 ServiceID[] getServicesByState(ServiceState serviceState)
          Return a set of services that match the given service state.
 org.mobicents.slee.runtime.SleeInternalEndpoint getSleeEndpoint()
          get the slee endpoint
 org.mobicents.slee.container.profile.SleeProfileManager getSleeProfileManager()
          (Ivelin) FIXME: I think I messed up with the CVS merge.
 SleeState getSleeState()
          Get the current state of the Slee Container
static javax.slee.facilities.TimerFacility getTimerFacility()
           
 org.mobicents.slee.runtime.facilities.TraceFacilityImpl getTraceFacility()
           
 TransactionIDAccess getTransactionIDAccess()
          This is for the TCK only ( will be stripped in the actual release)
static org.mobicents.slee.runtime.transaction.SleeTransactionManager getTransactionManager()
          Get the transaction manager from JNDI
private  java.util.HashMap getUrlToDeployableUnitIDMap()
           
private  boolean hasReferringDU(org.mobicents.slee.container.management.DeployableUnitDescriptorImpl dudesc)
          Return true if there are any components that hold references to the deployable unit
 void init(SleeManagementMBean sleeManagementMBean)
          Initialization code.
 void initializeServices()
          Load up all the services from the deployment directory.
protected  void initNamingContexts()
          Register standard SLEE contexts in JNDI
 void install(ComponentDescriptor descriptor, DeployableUnitDescriptor duDescriptor)
          This is an implementation of the ComponentContainer.installComponent method.
private  void installEventType(org.mobicents.slee.container.management.EventTypeDescriptorImpl descriptorImpl)
           
private  void installProfile(org.mobicents.slee.container.management.ProfileSpecificationDescriptorImpl profileSpecificationDescriptorImpl)
          Deploys a Profile.
private  void installResourceAdaptor(org.mobicents.slee.resource.ResourceAdaptorDescriptorImpl raDescr)
          Install the resource adaptor component
private  void installResourceAdaptorTypes(org.mobicents.slee.resource.ResourceAdaptorTypeDescriptorImpl raTypeDescriptor)
          Installing the resource adaptor type descriptror component
private  void installSbb(org.mobicents.slee.container.management.SbbDescriptorImpl sbbDescriptorImpl)
          Deploys an SBB.
private  void installSbbEventEntries(org.mobicents.slee.container.management.SbbDescriptorImpl sbbDescriptorImpl)
           
private  void installService(org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptorImpl)
          Add a service to the deployment table
 boolean isInstalled(DeployableUnitID deployableUnitID)
          Check if a deployable Unit is deployed.
 java.util.Set listResourceAdaptorEntity()
           
static java.lang.Object lookupFacilityInJndi(java.lang.String facilityName)
          Convenience method for unregistering SLEE facilities with JNDI
static SleeContainer lookupFromJndi()
          Return the SleeContainer instance registered in the JVM scope of JNDI
 void postEvent(org.mobicents.slee.container.management.ComponentKey eventKey, java.lang.Object event, ActivityContextInterface aci, Address address)
          This is used in fireEvent to post an event to the event queue.
static void registerFacilityWithJndi(java.lang.String facilityName, java.lang.Object facility)
          Convenience method for registering SLEE facilities with JNDI
protected  void registerPropertyEditors()
           
private  void registerWithJndi()
           
static void registerWithJndi(java.lang.String prefix, java.lang.String name, java.lang.Object object)
          Register a internal slee component with jndi.
 void removeDeployableUnit(DeployableUnitID deployableUnitID)
          Uninstall a deployable unit and clean up all the files generated for it.
private  void removeEventType(DeployableUnitID deployableUnitID)
          Remove all the deployed evnet type information related to the deployable unit id.
private  void removeReferredComponent(ComponentID componentID)
          This is done pre-removal.
private  void removeReferredComponents(org.mobicents.slee.container.management.DeployableUnitDescriptorImpl dudesc)
           
private  void removeReferredDU(DeployableUnitID duid)
           
 void removeResourceAdaptorEntity(java.lang.String name)
           
 void removeResourceAdaptorEntityLink(java.lang.String link)
           
 void reviveAndStartService(ServiceID serviceID)
          Revive a dormant service and start it.
 void setRaEntityProperties(java.lang.String entityName, java.util.Properties properties)
           
 SleeState setSleeState(SleeState newState)
          Set the current state of the Slee Container.
private  void setupSbbEnvironment(org.mobicents.slee.container.management.SbbDescriptorImpl sbbDescriptor)
          Set up the comp/env naming environment for the Sbb.
private  void startRMIServer(NullActivityFactory naf, org.mobicents.slee.runtime.SleeInternalEndpoint endpoint, org.mobicents.slee.resource.EventLookup eventLookup)
           
 void startService(ServiceID serviceID)
          Start a service given its service ID.
private  void stopRMIServer()
           
 void stopService(ServiceID serviceID)
           
private  void uninstallRA(org.mobicents.slee.container.management.DeployableUnitIDImpl deployableUnitID)
          unistall a Resource Adaptor.
private  void uninstallRAType(org.mobicents.slee.container.management.DeployableUnitIDImpl deployableUnitID)
          unistall a RA Type.
private  void uninstallService(org.mobicents.slee.container.management.DeployableUnitIDImpl deployableUnitID)
          unistall a service.
static void unregisterFacilityWithJndi(java.lang.String facilityName)
          Convenience method for unregistering SLEE facilities with JNDI
private  void unregisterWithJndi()
           
static void unregisterWithJndi(java.lang.String name)
          Unregister an internal slee component with jndi.
static void unregisterWithJndi(java.lang.String prefix, java.lang.String name)
          Unregister an internal slee component with jndi.
 void updateConfigurationProperties(java.lang.String name, java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_NAME

private static final java.lang.String JNDI_NAME
See Also:
Constant Field Values

JVM_ENV

public static final java.lang.String JVM_ENV
See Also:
Constant Field Values

SERVICEACTIVITY_FACTORY_JNDI_NAME

private static final java.lang.String SERVICEACTIVITY_FACTORY_JNDI_NAME
See Also:
Constant Field Values

SERVICEACTIVITYACI_FACTORY_JNDI_NAME

private static final java.lang.String SERVICEACTIVITYACI_FACTORY_JNDI_NAME
See Also:
Constant Field Values

DEPLOY_PATH

public static final java.lang.String DEPLOY_PATH

COMP_ENV

public static final java.lang.String COMP_ENV
standard ENC name in JNDI

See Also:
Constant Field Values

CTX_SLEE

private static final java.lang.String CTX_SLEE
the root context for SLEE

See Also:
Constant Field Values

sleeState

private SleeState sleeState
The lifecycle state of the SLEE


sbbPooling

private java.util.HashMap sbbPooling

eventLookup

private org.mobicents.slee.resource.EventLookup eventLookup

eventTypeIDToDescriptor

private java.util.HashMap eventTypeIDToDescriptor

eventKeyToEventTypeIDMap

private java.util.HashMap eventKeyToEventTypeIDMap

eventTypeIDs

private java.util.HashMap eventTypeIDs

activityContextFactory

private org.mobicents.slee.runtime.ActivityContextFactoryImpl activityContextFactory

sleeEndpoint

private org.mobicents.slee.runtime.SleeInternalEndpoint sleeEndpoint

router

private org.mobicents.slee.runtime.EventRouter router

deploymentManager

private org.mobicents.slee.container.management.DeploymentManager deploymentManager

serviceActivityContextInterfaceFactory

private org.mobicents.slee.runtime.serviceactivity.ServiceActivityContextInterfaceFactoryImpl serviceActivityContextInterfaceFactory

nullActivityContextInterfaceFactory

private org.mobicents.slee.runtime.facilities.NullActivityContextInterfaceFactoryImpl nullActivityContextInterfaceFactory

eventTypeIDToEventKeyMap

private java.util.HashMap eventTypeIDToEventKeyMap

logger

private static org.jboss.logging.Logger logger

activityContextNamingFacility

private org.mobicents.slee.runtime.facilities.ActivityContextNamingFacilityImpl activityContextNamingFacility

rmiServer

private org.jboss.ha.framework.server.HARMIServerImpl rmiServer

sbbEntityFactory

private org.mobicents.slee.runtime.SbbEntityFactory sbbEntityFactory

resourceAdaptorTypes

private java.util.HashMap resourceAdaptorTypes
Resource Container


installedResourceAdaptors

private java.util.HashMap installedResourceAdaptors

resourceAdaptorEntityLinks

private java.util.HashMap resourceAdaptorEntityLinks

raEntityProperties

private java.util.HashMap raEntityProperties

resourceAdaptorEntities

private java.util.HashMap resourceAdaptorEntities

bootstrapContext

private org.mobicents.slee.resource.ResourceAdaptorContext bootstrapContext

activityContextInterfaceFactories

private java.util.HashMap activityContextInterfaceFactories

nullActivityFactory

private org.mobicents.slee.runtime.facilities.NullActivityFactoryImpl nullActivityFactory

profileTableActivityContextInterfaceFactory

private org.mobicents.slee.runtime.facilities.ProfileTableActivityContextInterfaceFactoryImpl profileTableActivityContextInterfaceFactory

transactionIDAccess

private TransactionIDAccess transactionIDAccess

mbeanServer

private javax.management.MBeanServer mbeanServer

serviceManagementMBean

private ServiceManagementMBean serviceManagementMBean

loader

private java.lang.ClassLoader loader

deploymentCacheManager

private SleeContainer.DeploymentCacheManager deploymentCacheManager

serviceActivityFactory

private org.mobicents.slee.runtime.serviceactivity.ServiceActivityFactoryImpl serviceActivityFactory
Constructor Detail

SleeContainer

public SleeContainer(javax.management.MBeanServer mbserver)
              throws java.lang.Exception
Creates a new instance of SleeContainer -- This is called from the SleeManagementMBean to get the whole thing running.

Method Detail

getDeploymentCacheManager

private SleeContainer.DeploymentCacheManager getDeploymentCacheManager()
                                                                throws javax.transaction.SystemException
Note we dont need a per tx deployment cache because there is only one tx that ever writes to the deployment cache. Having true tx isolation ( per tx data for deployment ) adds too much overhead and is not necessary.


getServiceComponents

public java.util.HashMap getServiceComponents()
                                       throws javax.transaction.SystemException

getReferringComponents

private java.util.HashMap getReferringComponents()
                                          throws javax.transaction.SystemException

getProfileComponents

private java.util.HashMap getProfileComponents()
                                        throws javax.transaction.SystemException

getComponentIDToDeployableUnitIDMap

private java.util.HashMap getComponentIDToDeployableUnitIDMap()
                                                       throws javax.transaction.SystemException

getUrlToDeployableUnitIDMap

private java.util.HashMap getUrlToDeployableUnitIDMap()
                                               throws javax.transaction.SystemException

getSbbComponents

private java.util.HashMap getSbbComponents()
                                    throws javax.transaction.SystemException

getDeployableUnitIDtoDescriptorMap

private java.util.HashMap getDeployableUnitIDtoDescriptorMap()
                                                      throws javax.transaction.SystemException

getTraceFacility

public org.mobicents.slee.runtime.facilities.TraceFacilityImpl getTraceFacility()

getAlarmFacility

public org.mobicents.slee.runtime.facilities.AlarmFacilityImpl getAlarmFacility()

getClassLoader

public java.lang.ClassLoader getClassLoader()

getServiceManagementMBean

public ServiceManagementMBean getServiceManagementMBean()
Get the service management MBean


init

public void init(SleeManagementMBean sleeManagementMBean)
          throws java.lang.Exception
Initialization code.


registerWithJndi

private void registerWithJndi()

unregisterWithJndi

private void unregisterWithJndi()

lookupFromJndi

public static SleeContainer lookupFromJndi()
Return the SleeContainer instance registered in the JVM scope of JNDI


startRMIServer

private void startRMIServer(NullActivityFactory naf,
                            org.mobicents.slee.runtime.SleeInternalEndpoint endpoint,
                            org.mobicents.slee.resource.EventLookup eventLookup)

stopRMIServer

private void stopRMIServer()

initializeServices

public void initializeServices()
                        throws java.lang.Exception
Load up all the services from the deployment directory.


startService

public void startService(ServiceID serviceID)
                  throws UnrecognizedServiceException,
                         InvalidStateException
Start a service given its service ID.


reviveAndStartService

public void reviveAndStartService(ServiceID serviceID)
                           throws java.lang.Exception
Revive a dormant service and start it. This is called when starting the SLEE after stop.


getResourceAdaptorEntity

public org.mobicents.slee.resource.ResourceAdaptorEntity getResourceAdaptorEntity(ResourceAdaptorTypeID raTypeID)
                                                                           throws java.lang.Exception
get a resource adaptor entity given its name. To retrieve an RA Entity from. A single resource adaptor type may have multiple resource adaptors associated with it. This conveniance method just returns the first one.


getInstalledResourceAdaptor

public org.mobicents.slee.resource.InstalledResourceAdaptor getInstalledResourceAdaptor(ResourceAdaptorID raId)
                                                                                 throws java.lang.Exception

closeTckResourceAdaptor

public void closeTckResourceAdaptor()
Reverses the result of


activateResourceAdaptorEntity

public void activateResourceAdaptorEntity(java.lang.String name)
                                   throws org.mobicents.slee.container.management.UnrecognizedResourceAdaptorException,
                                          InvalidStateException,
                                          org.mobicents.slee.resource.ResourceException,
                                          ManagementException
Activate a resource adaptor entity given its name.


addResourceAdaptorType

public void addResourceAdaptorType(ResourceAdaptorTypeID key,
                                   org.mobicents.slee.resource.ResourceAdaptorType rat)

getResourceAdaptorTypes

public java.util.HashMap getResourceAdaptorTypes()

close

public void close()
           throws javax.naming.NamingException
Cleanup in the reverse order of init()


cleanSleeCache

private void cleanSleeCache()
Clean up the JBoss TreeCache branch for the SLEE.


deployStandardEvents

private void deployStandardEvents()
                           throws java.lang.Exception
These are slee defined events. These are stored in the location slee-event-jar.xml Parse these and make them known to the slee.


deployStandardProfileSpecs

private void deployStandardProfileSpecs()
                                 throws java.lang.Exception
These are slee defined profiles. These are stored in the location slee-profile-spec-jar.xml Parse these and make them known to the slee.


installEventType

private void installEventType(org.mobicents.slee.container.management.EventTypeDescriptorImpl descriptorImpl)
                       throws AlreadyDeployedException

removeEventType

private void removeEventType(DeployableUnitID deployableUnitID)
Remove all the deployed evnet type information related to the deployable unit id. Searches through the set of deployed event information and removes any event information associated with this deployableUnitID


unregisterWithJndi

public static void unregisterWithJndi(java.lang.String prefix,
                                      java.lang.String name)
Unregister an internal slee component with jndi.


unregisterWithJndi

public static void unregisterWithJndi(java.lang.String name)
Unregister an internal slee component with jndi.


registerWithJndi

public static void registerWithJndi(java.lang.String prefix,
                                    java.lang.String name,
                                    java.lang.Object object)
Register a internal slee component with jndi.


registerFacilityWithJndi

public static void registerFacilityWithJndi(java.lang.String facilityName,
                                            java.lang.Object facility)
Convenience method for registering SLEE facilities with JNDI


unregisterFacilityWithJndi

public static void unregisterFacilityWithJndi(java.lang.String facilityName)
Convenience method for unregistering SLEE facilities with JNDI


lookupFacilityInJndi

public static java.lang.Object lookupFacilityInJndi(java.lang.String facilityName)
Convenience method for unregistering SLEE facilities with JNDI


getFromJndi

private static java.lang.Object getFromJndi(java.lang.String resourceName)
lookup a name reference from jndi.


installService

private void installService(org.mobicents.slee.container.management.ServiceDescriptorImpl serviceDescriptorImpl)
                     throws java.lang.Exception
Add a service to the deployment table


uninstallService

private void uninstallService(org.mobicents.slee.container.management.DeployableUnitIDImpl deployableUnitID)
                       throws java.lang.Exception
unistall a service.


uninstallRA

private void uninstallRA(org.mobicents.slee.container.management.DeployableUnitIDImpl deployableUnitID)
                  throws java.lang.Exception
unistall a Resource Adaptor.


uninstallRAType

private void uninstallRAType(org.mobicents.slee.container.management.DeployableUnitIDImpl deployableUnitID)
                      throws java.lang.Exception
unistall a RA Type.


installSbb

private void installSbb(org.mobicents.slee.container.management.SbbDescriptorImpl sbbDescriptorImpl)
                 throws java.lang.Exception
Deploys an SBB. This generates the code to convert abstract to concrete class and registers the component in the component table and creates an object pool for the sbb id.


setupSbbEnvironment

private void setupSbbEnvironment(org.mobicents.slee.container.management.SbbDescriptorImpl sbbDescriptor)
                          throws java.lang.Exception
Set up the comp/env naming environment for the Sbb. This method is called during deployment and sets up the naming context for the SBB environment. It also checks to see if the resource adaptors etc. are installed.


getActivityContextFactory

public org.mobicents.slee.runtime.ActivityContextFactoryImpl getActivityContextFactory()

getEventDescriptor

public org.mobicents.slee.container.management.EventTypeDescriptorImpl getEventDescriptor(EventTypeID id)

getActivityContextCount

public int getActivityContextCount()
check the number of activity contexts.


getSleeEndpoint

public org.mobicents.slee.runtime.SleeInternalEndpoint getSleeEndpoint()
get the slee endpoint


getSbbIDs

public org.mobicents.slee.container.management.SbbIDImpl[] getSbbIDs()
                                                              throws java.lang.Exception
Get the sbb components


getActivityContextNamingFacility

public javax.slee.facilities.ActivityContextNamingFacility getActivityContextNamingFacility()

getProfileFacility

public static ProfileFacility getProfileFacility()

getTimerFacility

public static javax.slee.facilities.TimerFacility getTimerFacility()

getSbbComponent

public SbbDescriptor getSbbComponent(SbbID sbbComponentId)

addSbbComponent

private void addSbbComponent(SbbDescriptor sbbComponent)
                      throws java.lang.Exception

getService

public org.mobicents.slee.container.service.Service getService(ServiceID serviceId)
                                                        throws javax.transaction.SystemException,
                                                               UnrecognizedServiceException
Geta service give its service id


getTransactionManager

public static org.mobicents.slee.runtime.transaction.SleeTransactionManager getTransactionManager()
Get the transaction manager from JNDI


getTransactionIDAccess

public TransactionIDAccess getTransactionIDAccess()
This is for the TCK only ( will be stripped in the actual release)


getServiceIDs

public ServiceID[] getServiceIDs()
Get a list of services known to me


installSbbEventEntries

private void installSbbEventEntries(org.mobicents.slee.container.management.SbbDescriptorImpl sbbDescriptorImpl)
                             throws DeploymentException

getObjectPool

public org.apache.commons.pool.ObjectPool getObjectPool(SbbID sbbid)
get the ObjectPool for this Sbb. Each Sbb component has its own object pool. Each sbb component is identified by an SbbId.


addReferringComponent

private void addReferringComponent(ComponentID componentID,
                                   ComponentID referringComponent)
Add a referring component to a given component ID. This is only a table of direct references. A component cannot be uninstalled if there are any components that refer to it.


removeReferredComponent

private void removeReferredComponent(ComponentID componentID)
This is done pre-removal. Go through the component table and remove all places where I refer to somebody.


getReferringComponents

public org.mobicents.slee.container.management.ComponentIDImpl[] getReferringComponents(ComponentID referredComponent)
This is called by our management interface.


addReferringDU

private void addReferringDU(ComponentID cid,
                            DeployableUnitID duid)

removeReferredDU

private void removeReferredDU(DeployableUnitID duid)

hasReferringDU

private boolean hasReferringDU(