org.mobicents.slee.sipevent.examples
Class InternalPublisherExampleSbb

java.lang.Object
  extended by org.mobicents.slee.sipevent.examples.InternalPublisherExampleSbb
All Implemented Interfaces:
javax.slee.Sbb, PublicationClientControlParent

public abstract class InternalPublisherExampleSbb
extends java.lang.Object
implements javax.slee.Sbb, PublicationClientControlParent

Example of an application that uses PublicationClientControlSbbLocalObject as a child sbb, and implements PublicationClientControlParentSbbLocalObject, to interact with the Mobicents SIP Event Publication service.

Author:
Eduardo Martins

Constructor Summary
InternalPublisherExampleSbb()
           
 
Method Summary
abstract  java.lang.String getETag()
           
abstract  org.mobicents.slee.ChildRelationExt getPublicationControlChildRelation()
           
 void onActivityEndEvent(javax.slee.ActivityEndEvent event, javax.slee.ActivityContextInterface aci)
          service deactivation, remove published state
 void onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event, javax.slee.ActivityContextInterface aci)
           
 void onTimerEvent(javax.slee.facilities.TimerEvent event, javax.slee.ActivityContextInterface aci)
           
 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()
           
abstract  void setETag(java.lang.String eTag)
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
          Called when an sbb object is instantied and enters the pooled state.
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalPublisherExampleSbb

public InternalPublisherExampleSbb()
Method Detail

getPublicationControlChildRelation

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

setETag

public abstract void setETag(java.lang.String eTag)

getETag

public abstract java.lang.String getETag()

onServiceStartedEvent

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

onTimerEvent

public void onTimerEvent(javax.slee.facilities.TimerEvent event,
                         javax.slee.ActivityContextInterface aci)

onActivityEndEvent

public void onActivityEndEvent(javax.slee.ActivityEndEvent event,
                               javax.slee.ActivityContextInterface aci)
service deactivation, remove published state

Parameters:
event -
aci -

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.