org.mobicents.slee.sipevent.examples
Class RLSExampleRootSbb

java.lang.Object
  extended by org.mobicents.slee.sipevent.examples.RLSExampleRootSbb
All Implemented Interfaces:
javax.slee.Sbb, RLSExamplePublisherParent, RLSExampleRoot, RLSExampleSubscriberParent

public abstract class RLSExampleRootSbb
extends java.lang.Object
implements javax.slee.Sbb, RLSExampleRoot

Example of an application that uses SubscriptionClientControlSbbLocalObject as a child sbb, and implements SubscriptionClientControlParentSbbLocalObject, to interact with the Mobicents SIP Event Subscription service.

Author:
Eduardo Martins

Constructor Summary
RLSExampleRootSbb()
           
 
Method Summary
abstract  org.mobicents.slee.ChildRelationExt getPublisherChildRelation()
           
abstract  org.mobicents.slee.ChildRelationExt getSubscriberChildRelation()
           
 void onActivityEndEvent(javax.slee.ActivityEndEvent event, javax.slee.ActivityContextInterface aci)
          service deactivation, unsubscribe
 void onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event, javax.slee.ActivityContextInterface aci)
           
 void publisherNotStarted(java.lang.String publisher)
           
 void publisherStarted(java.lang.String publisher)
           
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception exception, java.lang.Object event, javax.slee.ActivityContextInterface activity)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext sbbRolledBack)
           
 void sbbStore()
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
          Called when an sbb object is instantied and enters the pooled state.
 void subscriberNotStarted()
           
 void subscriberStarted()
           
 void subscriberStopped()
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLSExampleRootSbb

public RLSExampleRootSbb()
Method Detail

onServiceStartedEvent

public void onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event,
                                  javax.slee.ActivityContextInterface aci)

publisherNotStarted

public void publisherNotStarted(java.lang.String publisher)
Specified by:
publisherNotStarted in interface RLSExamplePublisherParent

publisherStarted

public void publisherStarted(java.lang.String publisher)
Specified by:
publisherStarted in interface RLSExamplePublisherParent

subscriberNotStarted

public void subscriberNotStarted()
Specified by:
subscriberNotStarted in interface RLSExampleSubscriberParent

subscriberStarted

public void subscriberStarted()
Specified by:
subscriberStarted in interface RLSExampleSubscriberParent

subscriberStopped

public void subscriberStopped()
Specified by:
subscriberStopped in interface RLSExampleSubscriberParent

onActivityEndEvent

public void onActivityEndEvent(javax.slee.ActivityEndEvent event,
                               javax.slee.ActivityContextInterface aci)
service deactivation, unsubscribe

Parameters:
event -
aci -

getPublisherChildRelation

public abstract org.mobicents.slee.ChildRelationExt getPublisherChildRelation()

getSubscriberChildRelation

public abstract org.mobicents.slee.ChildRelationExt getSubscriberChildRelation()

setSbbContext

public void setSbbContext(javax.slee.SbbContext sbbContext)
Called when an sbb object is instantied and enters the pooled state.

Specified by:
setSbbContext in interface javax.slee.Sbb

unsetSbbContext

public void unsetSbbContext()
Specified by:
unsetSbbContext in interface javax.slee.Sbb

sbbCreate

public void sbbCreate()
               throws javax.slee.CreateException
Specified by:
sbbCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbPostCreate

public void sbbPostCreate()
                   throws javax.slee.CreateException
Specified by:
sbbPostCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbActivate

public void sbbActivate()
Specified by:
sbbActivate in interface javax.slee.Sbb

sbbPassivate

public void sbbPassivate()
Specified by:
sbbPassivate in interface javax.slee.Sbb

sbbRemove

public void sbbRemove()
Specified by:
sbbRemove in interface javax.slee.Sbb

sbbLoad

public void sbbLoad()
Specified by:
sbbLoad in interface javax.slee.Sbb

sbbStore

public void sbbStore()
Specified by:
sbbStore in interface javax.slee.Sbb

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception exception,
                               java.lang.Object event,
                               javax.slee.ActivityContextInterface activity)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbRolledBack

public void sbbRolledBack(javax.slee.RolledBackContext sbbRolledBack)
Specified by:
sbbRolledBack in interface javax.slee.Sbb


Copyright © 2011. All Rights Reserved.