org.mobicents.slee.services.sip.location
Class LocationSbb
java.lang.Object
org.mobicents.slee.services.sip.location.LocationSbb
- All Implemented Interfaces:
- javax.slee.Sbb, org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean, org.mobicents.slee.services.sip.location.LocationService
public abstract class LocationSbb
- extends java.lang.Object
- implements javax.slee.Sbb, org.mobicents.slee.services.sip.location.LocationService
| Fields inherited from interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean |
MBEAN_NAME |
|
Method Summary |
org.mobicents.slee.services.sip.location.RegistrationBinding |
addBinding(java.lang.String sipAddress,
java.lang.String contactAddress,
java.lang.String comment,
long expires,
long registrationDate,
float qValue,
java.lang.String callId,
long cSeq)
|
abstract RegistrationBindingActivityContextInterface |
asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)
|
java.util.Map<java.lang.String,org.mobicents.slee.services.sip.location.RegistrationBinding> |
getBindings(java.lang.String sipAddress)
|
java.util.Set<java.lang.String> |
getContacts(java.lang.String sipAddress)
|
long |
getExpirationTime(java.lang.String sipAddress,
java.lang.String contactAddress)
|
int |
getRegisteredUserCount()
|
java.util.Set<java.lang.String> |
getRegisteredUsers()
|
void |
init()
|
void |
onTimerEvent(javax.slee.facilities.TimerEvent timer,
javax.slee.ActivityContextInterface aci)
a registration expires |
void |
removeBinding(java.lang.String sipAddress,
java.lang.String contactAddress)
|
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 sbbContext)
|
void |
shutdown()
|
void |
unsetSbbContext()
|
void |
updateBinding(org.mobicents.slee.services.sip.location.RegistrationBinding registrationBinding)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationSbb
public LocationSbb()
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
setSbbContext
public void setSbbContext(javax.slee.SbbContext sbbContext)
- Specified by:
setSbbContext in interface javax.slee.Sbb
unsetSbbContext
public void unsetSbbContext()
- Specified by:
unsetSbbContext in interface javax.slee.Sbb
asSbbActivityContextInterface
public abstract RegistrationBindingActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)
- Parameters:
aci -
- Returns:
addBinding
public org.mobicents.slee.services.sip.location.RegistrationBinding addBinding(java.lang.String sipAddress,
java.lang.String contactAddress,
java.lang.String comment,
long expires,
long registrationDate,
float qValue,
java.lang.String callId,
long cSeq)
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
addBinding in interface org.mobicents.slee.services.sip.location.LocationService
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
getRegisteredUsers
public java.util.Set<java.lang.String> getRegisteredUsers()
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
getRegisteredUsers in interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean- Specified by:
getRegisteredUsers in interface org.mobicents.slee.services.sip.location.LocationService
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
getBindings
public java.util.Map<java.lang.String,org.mobicents.slee.services.sip.location.RegistrationBinding> getBindings(java.lang.String sipAddress)
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
getBindings in interface org.mobicents.slee.services.sip.location.LocationService
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
updateBinding
public void updateBinding(org.mobicents.slee.services.sip.location.RegistrationBinding registrationBinding)
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
updateBinding in interface org.mobicents.slee.services.sip.location.LocationService
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
removeBinding
public void removeBinding(java.lang.String sipAddress,
java.lang.String contactAddress)
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
removeBinding in interface org.mobicents.slee.services.sip.location.LocationService
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
getContacts
public java.util.Set<java.lang.String> getContacts(java.lang.String sipAddress)
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
getContacts in interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
getExpirationTime
public long getExpirationTime(java.lang.String sipAddress,
java.lang.String contactAddress)
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
getExpirationTime in interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
getRegisteredUserCount
public int getRegisteredUserCount()
throws org.mobicents.slee.services.sip.location.LocationServiceException
- Specified by:
getRegisteredUserCount in interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean
- Throws:
org.mobicents.slee.services.sip.location.LocationServiceException
onTimerEvent
public void onTimerEvent(javax.slee.facilities.TimerEvent timer,
javax.slee.ActivityContextInterface aci)
- a registration expires
- Parameters:
timer - aci -
init
public void init()
- Specified by:
init in interface org.mobicents.slee.services.sip.location.LocationService
shutdown
public void shutdown()
- Specified by:
shutdown in interface org.mobicents.slee.services.sip.location.LocationService
Copyright © 2009. All Rights Reserved.