org.mobicents.slee.sipevent.examples
Class InternalPublisherExampleSbb

java.lang.Object
  extended by org.mobicents.slee.sipevent.examples.InternalPublisherExampleSbb
All Implemented Interfaces:
javax.slee.Sbb, javax.slee.SbbLocalObject, org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

public abstract class InternalPublisherExampleSbb
extends java.lang.Object
implements javax.slee.Sbb, org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

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  javax.slee.ChildRelation getPublicationControlChildRelation()
           
abstract  org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject getPublicationControlChildSbbCMP()
           
 void modifyPublicationError(java.lang.Object requestId, int error)
           
 void modifyPublicationOk(java.lang.Object requestId, java.lang.String tag, int expires)
           
 void newPublicationError(java.lang.Object requestId, int error)
           
 void newPublicationOk(java.lang.Object requestId, java.lang.String tag, int expires)
           
 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 refreshPublicationError(java.lang.Object requestId, int error)
           
 void refreshPublicationOk(java.lang.Object requestId, java.lang.String tag, int expires)
           
 void removePublicationError(java.lang.Object requestId, int error)
           
 void removePublicationOk(java.lang.Object requestId)
           
 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)
           
abstract  void setPublicationControlChildSbbCMP(org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject value)
           
 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
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

Constructor Detail

InternalPublisherExampleSbb

public InternalPublisherExampleSbb()
Method Detail

getPublicationControlChildRelation

public abstract javax.slee.ChildRelation getPublicationControlChildRelation()

getPublicationControlChildSbbCMP

public abstract org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject getPublicationControlChildSbbCMP()

setPublicationControlChildSbbCMP

public abstract void setPublicationControlChildSbbCMP(org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject value)

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)

newPublicationOk

public void newPublicationOk(java.lang.Object requestId,
                             java.lang.String tag,
                             int expires)
                      throws java.lang.Exception
Specified by:
newPublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

newPublicationError

public void newPublicationError(java.lang.Object requestId,
                                int error)
Specified by:
newPublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

onTimerEvent

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

refreshPublicationOk

public void refreshPublicationOk(java.lang.Object requestId,
                                 java.lang.String tag,
                                 int expires)
                          throws java.lang.Exception
Specified by:
refreshPublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

refreshPublicationError

public void refreshPublicationError(java.lang.Object requestId,
                                    int error)
Specified by:
refreshPublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

onActivityEndEvent

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

Parameters:
event -
aci -

removePublicationOk

public void removePublicationOk(java.lang.Object requestId)
                         throws java.lang.Exception
Specified by:
removePublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

removePublicationError

public void removePublicationError(java.lang.Object requestId,
                                   int error)
Specified by:
removePublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

modifyPublicationOk

public void modifyPublicationOk(java.lang.Object requestId,
                                java.lang.String tag,
                                int expires)
                         throws java.lang.Exception
Specified by:
modifyPublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

modifyPublicationError

public void modifyPublicationError(java.lang.Object requestId,
                                   int error)
Specified by:
modifyPublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

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.