java.lang.Object
org.mobicents.slee.runtime.SbbContextImpl
- All Implemented Interfaces:
- java.io.Serializable
- public class SbbContextImpl
- extends java.lang.Object
- implements java.io.Serializable
SBB Context Implementation.
The SLEE provides each SBB object with an SbbContext object. The SbbContext
object gives the SBB object access to the SBB object’s context maintained by
the SLEE, allows the SBB object to invoke functions provided by the SLEE, and
obtain information about the SBB entity assigned to the SBB object. The
SbbContext object implements the SbbContext interface. The SbbContext
interface declares the following methods: · Methods to access information
determined at runtime. o A getSbbLocalObject method to get an SBB local
object that represents the SBB entity assigned to the SBB object of the
SbbContext object. o A getService method to get a ServiceID object that
encapsulates the component identity of the Service that the SBB entity is a
descendent of, i.e. the SBB entity is in an SBB entity tree whose root SBB
entity is instantiated by the SLEE for the child relation (from SLEE as
parent to the root SBB) specified by the Service. o A getSbb method to get an
SbbID object that encapsulates the component identity of the SBB. · Activity
Context methods. These methods are discussed in greater detail in Section
7.7.1. o A getActivities method. This method returns all the Activity
Contexts that the SBB entity assigned to the SBB object of the SbbContext
object is attached to. More precisely, it returns an Activity Context
Interface object for each Activity Context attached to the SBB entity
assigned to the SBB object of the SbbContext object. · Event mask methods.
These methods are described in Section 8.4.3. o A maskEvent method. This
method masks event types that the SBB entity assigned to the SBB object of
the SbbContext object no longer wishes to receive from an Activity Context. o
A getEventMask method. This returns the set of masked event types for an
Activity Context that SBB entity assigned to the SBB object of the SbbContext
object is attached to. · Transaction methods. These methods are described in
Section 6.10. o A setRollbackOnly method. The SBB Developer uses this method
to mark the transaction of the current method invocation for rollback. o A
getRollbackOnly method. The SBB Developer uses this method to determine if
the transaction of the current method invocation has been marked for
rollback.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static volatile org.jboss.logging.Logger logger
sbbObject
private SbbObject sbbObject
- The SBB entity to which I am assigned.
serviceContainer
protected volatile org.mobicents.slee.container.SleeContainer serviceContainer
- The service container to which I am associated.
SbbContextImpl
public SbbContextImpl(SbbObject sbbObject,
org.mobicents.slee.container.SleeContainer serviceContainer)
- Creates a new instance of SbbContextImpl
getActivities
public ActivityContextInterface[] getActivities()
throws TransactionRequiredLocalException,
java.lang.IllegalStateException,
SLEEException
getEventMask
public java.lang.String[] getEventMask(ActivityContextInterface aci)
throws java.lang.NullPointerException,
TransactionRequiredLocalException,
java.lang.IllegalStateException,
NotAttachedException,
SLEEException
getRollbackOnly
public boolean getRollbackOnly()
throws TransactionRequiredLocalException,
SLEEException
getSbb
public SbbID getSbb()
throws SLEEException
getSbbLocalObject
public SbbLocalObject getSbbLocalObject()
throws TransactionRequiredLocalException,
java.lang.IllegalStateException,
SLEEException
getService
public ServiceID getService()
throws SLEEException
maskEvent
public void maskEvent(java.lang.String[] eventNames,
ActivityContextInterface aci)
throws java.lang.NullPointerException,
TransactionRequiredLocalException,
java.lang.IllegalStateException,
UnrecognizedEventException,
NotAttachedException,
SLEEException
setRollbackOnly
public void setRollbackOnly()
throws TransactionRequiredLocalException,
SLEEException
- A setRollbackOnly method. The SBB Developer uses this method
to mark the transaction of the current method invocation for rollback. A
getRollbackOnly method. The SBB Developer uses this method to determine if
the transaction of the current method invocation has been marked for
rollback.