org.onebusaway.federations.impl
Class FederatedServiceRegistryImpl

java.lang.Object
  extended by org.onebusaway.federations.impl.FederatedServiceRegistryImpl
All Implemented Interfaces:
FederatedServiceRegistry

public class FederatedServiceRegistryImpl
extends Object
implements FederatedServiceRegistry

Basic FederatedServiceRegistry implementation that implements features such as FederatedServiceRegistryConstants.KEY_REGISTRATION_EXPIRES_AFTER.

Author:
bdferris
See Also:
FederatedServiceRegistry

Constructor Summary
FederatedServiceRegistryImpl()
           
 
Method Summary
 void addService(String url, String serviceClass, Map<String,String> properties)
           
 List<FederatedServiceRegistryEntry> getAllServices()
           
 List<FederatedServiceRegistryEntry> getServices(String serviceClass, Map<String,String> properties)
           
 void removeAllServices()
           
 void removeService(String url)
           
 void setServiceStatus(String url, boolean enabled)
           
 void setUpdateFrequency(int updateFrequencyInSeconds)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FederatedServiceRegistryImpl

public FederatedServiceRegistryImpl()
Method Detail

setUpdateFrequency

public void setUpdateFrequency(int updateFrequencyInSeconds)

start

public void start()

stop

public void stop()

getAllServices

public List<FederatedServiceRegistryEntry> getAllServices()
Specified by:
getAllServices in interface FederatedServiceRegistry

getServices

public List<FederatedServiceRegistryEntry> getServices(String serviceClass,
                                                       Map<String,String> properties)
Specified by:
getServices in interface FederatedServiceRegistry

addService

public void addService(String url,
                       String serviceClass,
                       Map<String,String> properties)
Specified by:
addService in interface FederatedServiceRegistry

removeService

public void removeService(String url)
Specified by:
removeService in interface FederatedServiceRegistry

removeAllServices

public void removeAllServices()
Specified by:
removeAllServices in interface FederatedServiceRegistry

setServiceStatus

public void setServiceStatus(String url,
                             boolean enabled)
Specified by:
setServiceStatus in interface FederatedServiceRegistry


Copyright © 2011 OneBusAway. All Rights Reserved.