org.livetribe.slp.api
Class MatchingServiceInfoCache

java.lang.Object
  extended by org.livetribe.slp.api.MatchingServiceInfoCache
All Implemented Interfaces:
EventListener, MessageRegistrationListener

public class MatchingServiceInfoCache
extends Object
implements MessageRegistrationListener

Version:
$Rev: 258 $ $Date: 2006-08-23 15:45:17 +0200 (Wed, 23 Aug 2006) $

Constructor Summary
MatchingServiceInfoCache(ServiceType serviceType, Scopes matchingScopes, String matchingFilter, String matchingLanguage)
           
 
Method Summary
 void addServiceRegistrationListener(ServiceRegistrationListener listener)
           
 void clear()
           
 ServiceInfo get(ServiceInfo.Key key)
           
 Collection getServiceInfos()
           
 void handleSrvDeReg(SrvDeReg srvDeReg)
           
 void handleSrvReg(SrvReg srvReg)
           
protected  void notifyServiceDeregistered(ServiceInfo existing, ServiceInfo current)
           
protected  void notifyServiceExpired(ServiceInfo existing, ServiceInfo current)
           
protected  void notifyServiceRegistered(ServiceInfo existing, ServiceInfo current)
           
protected  void notifyServiceUpdated(ServiceInfo existing, ServiceInfo current)
           
 void purge()
           
 boolean put(ServiceInfo service)
           
 void putAll(Collection serviceInfos)
           
 boolean remove(ServiceInfo.Key key)
           
 void removeServiceRegistrationListener(ServiceRegistrationListener listener)
           
 boolean updateAdd(ServiceInfo service)
           
 boolean updateRemove(ServiceInfo service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchingServiceInfoCache

public MatchingServiceInfoCache(ServiceType serviceType,
                                Scopes matchingScopes,
                                String matchingFilter,
                                String matchingLanguage)
                         throws ServiceLocationException
Throws:
ServiceLocationException
Method Detail

addServiceRegistrationListener

public void addServiceRegistrationListener(ServiceRegistrationListener listener)

removeServiceRegistrationListener

public void removeServiceRegistrationListener(ServiceRegistrationListener listener)

put

public boolean put(ServiceInfo service)

putAll

public void putAll(Collection serviceInfos)

get

public ServiceInfo get(ServiceInfo.Key key)

getServiceInfos

public Collection getServiceInfos()

updateAdd

public boolean updateAdd(ServiceInfo service)

updateRemove

public boolean updateRemove(ServiceInfo service)

remove

public boolean remove(ServiceInfo.Key key)

clear

public void clear()

notifyServiceRegistered

protected void notifyServiceRegistered(ServiceInfo existing,
                                       ServiceInfo current)

notifyServiceUpdated

protected void notifyServiceUpdated(ServiceInfo existing,
                                    ServiceInfo current)

notifyServiceDeregistered

protected void notifyServiceDeregistered(ServiceInfo existing,
                                         ServiceInfo current)

notifyServiceExpired

protected void notifyServiceExpired(ServiceInfo existing,
                                    ServiceInfo current)

handleSrvReg

public void handleSrvReg(SrvReg srvReg)
Specified by:
handleSrvReg in interface MessageRegistrationListener

handleSrvDeReg

public void handleSrvDeReg(SrvDeReg srvDeReg)
Specified by:
handleSrvDeReg in interface MessageRegistrationListener

purge

public void purge()


Copyright © 2006-2012 LiveTribe. All Rights Reserved.