org.mobicents.slee.services.sip.location.jpa
Class JPALocationService
java.lang.Object
org.mobicents.slee.services.sip.location.jpa.JPALocationService
- All Implemented Interfaces:
- org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean, org.mobicents.slee.services.sip.location.LocationService
public class JPALocationService
- extends java.lang.Object
- implements org.mobicents.slee.services.sip.location.LocationService
Location Service implemented using JPA, which can be a HA data source.
- Author:
- martins
| 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,
javax.sip.address.Address contactAddress,
java.lang.String comment,
long expires,
long registrationDate,
float qValue,
java.lang.String callId,
long cSeq)
|
java.util.Map<javax.sip.address.Address,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 |
removeBinding(java.lang.String sipAddress,
javax.sip.address.Address sipContact)
|
void |
shutdown()
|
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 |
JPALocationService
public JPALocationService()
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
addBinding
public org.mobicents.slee.services.sip.location.RegistrationBinding addBinding(java.lang.String sipAddress,
javax.sip.address.Address 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
getBindings
public java.util.Map<javax.sip.address.Address,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,
javax.sip.address.Address sipContact)
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
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
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
Copyright © 2008. All Rights Reserved.