org.mobicents.slee.services.sip.location.jmx
Class LocationServiceManagement

java.lang.Object
  extended by org.mobicents.slee.services.sip.location.jmx.LocationServiceManagement
All Implemented Interfaces:
LocationServiceManagementMBean

public class LocationServiceManagement
extends java.lang.Object
implements LocationServiceManagementMBean

Implementation of the Location Service Management JMX interface.

Author:
martins

Field Summary
 
Fields inherited from interface org.mobicents.slee.services.sip.location.jmx.LocationServiceManagementMBean
MBEAN_NAME
 
Method Summary
static boolean create(LocationService locationService)
          Starts the MBean
static void destroy()
          Stops the MBean
 java.util.Set<java.lang.String> getContacts(java.lang.String sipAddress)
           
 long getExpirationTime(java.lang.String sipAddress, java.lang.String contactAddress)
          Returns time in miliseconds left till certain contact expires, if there is some error it return Long.MIN_VALUE.
 int getRegisteredUserCount()
          Number of registered users.
 java.util.Set<java.lang.String> getRegisteredUsers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContacts

public java.util.Set<java.lang.String> getContacts(java.lang.String sipAddress)
                                            throws LocationServiceException
Specified by:
getContacts in interface LocationServiceManagementMBean
Parameters:
sipAddress - - address of record, value like "sip:mobicents@gmail.com" this is passed in from and to header of REGISTER reqeust
Returns:
Throws:
LocationServiceException

getExpirationTime

public long getExpirationTime(java.lang.String sipAddress,
                              java.lang.String contactAddress)
                       throws LocationServiceException
Description copied from interface: LocationServiceManagementMBean
Returns time in miliseconds left till certain contact expires, if there is some error it return Long.MIN_VALUE.

Specified by:
getExpirationTime in interface LocationServiceManagementMBean
contactAddress - - must be exact value put into register. See return values of getContacts
Returns:
Throws:
LocationServiceException

getRegisteredUserCount

public int getRegisteredUserCount()
                           throws LocationServiceException
Description copied from interface: LocationServiceManagementMBean
Number of registered users.

Specified by:
getRegisteredUserCount in interface LocationServiceManagementMBean
Returns:
Throws:
LocationServiceException

getRegisteredUsers

public java.util.Set<java.lang.String> getRegisteredUsers()
                                                   throws LocationServiceException
Specified by:
getRegisteredUsers in interface LocationServiceManagementMBean
Returns:
Set with registered users. It contains entries like "sip:316471@kocia.domena.au" or "sip:mobicents@gmail.com"
Throws:
LocationServiceException

create

public static boolean create(LocationService locationService)
Starts the MBean

Returns:

destroy

public static void destroy()
Stops the MBean



Copyright © 2009. All Rights Reserved.