org.mobicents.slee.services.sip.location.nonha
Class NonHALocationService

java.lang.Object
  extended by org.mobicents.slee.services.sip.location.nonha.NonHALocationService
All Implemented Interfaces:
org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean, org.mobicents.slee.services.sip.location.LocationService

public class NonHALocationService
extends java.lang.Object
implements org.mobicents.slee.services.sip.location.LocationService

Simple location service without high availability or faul tolerance.

Author:
martins

Field Summary
 
Fields inherited from interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean
MBEAN_NAME
 
Constructor Summary
NonHALocationService()
           
 
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)
           
 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()
          Returns set of sip addresses of registered users.
 void init()
           
 void removeBinding(java.lang.String sipAddress, java.lang.String 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
 

Constructor Detail

NonHALocationService

public NonHALocationService()
Method Detail

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

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

removeBinding

public void removeBinding(java.lang.String sipAddress,
                          java.lang.String 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

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

getRegisteredUsers

public java.util.Set<java.lang.String> getRegisteredUsers()
                                                   throws org.mobicents.slee.services.sip.location.LocationServiceException
Returns set of sip addresses of registered users.

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

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

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 © 2010. All Rights Reserved.