org.mobicents.slee.services.sip.location.cache
Class LocationSbb

java.lang.Object
  extended by org.mobicents.slee.services.sip.location.cache.LocationSbb
All Implemented Interfaces:
javax.slee.Sbb, LocationInterface

public abstract class LocationSbb
extends java.lang.Object
implements javax.slee.Sbb, LocationInterface


Constructor Summary
LocationSbb()
           
 
Method Summary
 RegistrationBinding addUserLocation(java.lang.String sipAddress, java.lang.String contactAddress, java.lang.String comment, long expiresDelta, float q, java.lang.String id, long seq)
          Adds new contact binding for particular user..
abstract  CacheLocationActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)
           
protected  void clearENV()
           
 java.util.Set<java.lang.String> getRegisteredUsers()
          Returns set of user that have registered - set contains adress of record fro each user, something like sip:ala@kocia.domena.com
 java.util.Map<java.lang.String,RegistrationBinding> getUserBindings(java.lang.String sipAddress)
          Returns map which contians mapping contactAddress->registrationBinding for particular user - address of record sip:nie@ma.mnie.tu
 void onActivityEndEvent(javax.slee.ActivityEndEvent event, javax.slee.ActivityContextInterface aci)
           
 void onBindingTimeout(javax.slee.facilities.TimerEvent timer, javax.slee.ActivityContextInterface aci)
           
 void onServiceStarted(javax.slee.serviceactivity.ServiceStartedEvent serviceEvent, javax.slee.ActivityContextInterface aci)
           
 void removeBinding(java.lang.String sipAddress, java.lang.String contactAddress)
          Removes contact address from user bindings.
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception arg0, java.lang.Object arg1, javax.slee.ActivityContextInterface arg2)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext arg0)
           
 void sbbStore()
           
 void setSbbContext(javax.slee.SbbContext ctx)
           
protected  void startMBeanConfigurator()
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationSbb

public LocationSbb()
Method Detail

sbbActivate

public void sbbActivate()
Specified by:
sbbActivate 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

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception arg0,
                               java.lang.Object arg1,
                               javax.slee.ActivityContextInterface arg2)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbLoad

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

sbbPassivate

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

sbbPostCreate

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

sbbRemove

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

sbbRolledBack

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

sbbStore

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

asSbbActivityContextInterface

public abstract CacheLocationActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)

setSbbContext

public void setSbbContext(javax.slee.SbbContext ctx)
Specified by:
setSbbContext in interface javax.slee.Sbb

unsetSbbContext

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

addUserLocation

public RegistrationBinding addUserLocation(java.lang.String sipAddress,
                                           java.lang.String contactAddress,
                                           java.lang.String comment,
                                           long expiresDelta,
                                           float q,
                                           java.lang.String id,
                                           long seq)
                                    throws LocationServiceException
Description copied from interface: LocationInterface
Adds new contact binding for particular user..

Specified by:
addUserLocation in interface LocationInterface
Parameters:
sipAddress - - user address of record sip:ala@ma.kota.w.domu.com
contactAddress - - contact address - sip:+381243256
comment - - possible comment note
expiresDelta - - long - miliseconds for which this contact is to remain valid
q - - q parameter
id - - call id
seq - - seq numbers
Returns:
- bidning created in this operation
Throws:
LocationServiceException

getRegisteredUsers

public java.util.Set<java.lang.String> getRegisteredUsers()
Description copied from interface: LocationInterface
Returns set of user that have registered - set contains adress of record fro each user, something like sip:ala@kocia.domena.com

Specified by:
getRegisteredUsers in interface LocationInterface
Returns:

getUserBindings

public java.util.Map<java.lang.String,RegistrationBinding> getUserBindings(java.lang.String sipAddress)
                                                                    throws LocationServiceException
Description copied from interface: LocationInterface
Returns map which contians mapping contactAddress->registrationBinding for particular user - address of record sip:nie@ma.mnie.tu

Specified by:
getUserBindings in interface LocationInterface
Returns:
Throws:
LocationServiceException

removeBinding

public void removeBinding(java.lang.String sipAddress,
                          java.lang.String contactAddress)
                   throws LocationServiceException
Description copied from interface: LocationInterface
Removes contact address from user bindings.

Specified by:
removeBinding in interface LocationInterface
Parameters:
sipAddress - - sip:ala@kocia.domena.au
contactAddress - - sip:+481234567890
Throws:
LocationServiceException

onBindingTimeout

public void onBindingTimeout(javax.slee.facilities.TimerEvent timer,
                             javax.slee.ActivityContextInterface aci)

onServiceStarted

public void onServiceStarted(javax.slee.serviceactivity.ServiceStartedEvent serviceEvent,
                             javax.slee.ActivityContextInterface aci)

onActivityEndEvent

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

startMBeanConfigurator

protected void startMBeanConfigurator()

clearENV

protected void clearENV()


Copyright © 2008. All Rights Reserved.