org.mobicents.slee.services.sip.location.cache.mbean
Class LocationService

java.lang.Object
  extended by org.mobicents.slee.services.sip.location.cache.mbean.LocationService
All Implemented Interfaces:
LocationServiceMBean

public class LocationService
extends java.lang.Object
implements LocationServiceMBean


Field Summary
 
Fields inherited from interface org.mobicents.slee.services.sip.location.cache.mbean.LocationServiceMBean
MBEAN_NAME_PREFIX
 
Constructor Summary
LocationService()
           
 
Method Summary
 java.util.Set<java.lang.String> getContacts(java.lang.String record)
           
 long getExpirationTime(java.lang.String record, java.lang.String contact)
          Returns time in miliseconds left till certain contact expires, if there is some error it return Long.MIN_VALUE.
 java.lang.String getName()
           
 int getRegisteredUserCount()
          Number of registered users.
 java.util.Set<java.lang.String> getRegisteredUsers()
           
 void setName(java.lang.String name)
           
 boolean startService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationService

public LocationService()
Method Detail

getContacts

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

getExpirationTime

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

Specified by:
getExpirationTime in interface LocationServiceMBean
contact - - must be exact value put into register. See return values of getContacts
Returns:

getRegisteredUsers

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

getRegisteredUserCount

public int getRegisteredUserCount()
Description copied from interface: LocationServiceMBean
Number of registered users.

Specified by:
getRegisteredUserCount in interface LocationServiceMBean
Returns:

startService

public boolean startService()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)


Copyright © 2008. All Rights Reserved.