org.mobicents.slee.sipevent.examples
Class RLSExampleRootSbb

java.lang.Object
  extended by org.mobicents.slee.sipevent.examples.RLSExampleRootSbb
All Implemented Interfaces:
javax.slee.Sbb, javax.slee.SbbLocalObject, RLSExamplePublisherParentSbbLocalObject, RLSExampleRootSbbLocalObject, RLSExampleSubscriberParentSbbLocalObject

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

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  javax.slee.ChildRelation getPublisherChildRelation()
           
abstract  javax.slee.ChildRelation 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
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

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 RLSExamplePublisherParentSbbLocalObject

publisherStarted

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

subscriberNotStarted

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

subscriberStarted

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

subscriberStopped

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

onActivityEndEvent

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

Parameters:
event -
aci -

getPublisherChildRelation

public abstract javax.slee.ChildRelation getPublisherChildRelation()

getSubscriberChildRelation

public abstract javax.slee.ChildRelation 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 © 2009. All Rights Reserved.