org.onebusaway.federations
Interface FederatedServiceRegistry

All Known Implementing Classes:
FederatedServiceRegistryImpl

public interface FederatedServiceRegistry

Provides a registry for adding, removing, and querying service class names and their provider locations. While this functionality could be used to manage arbitrary resources, we mostly had in mind managing FederatedService instances exported as Hessian RPC services and aggregated into one virtual FederatedServiceCollection using DynamicFederatedServiceCollectionImpl.

Author:
bdferris
See Also:
FederatedServiceRegistryEntry, FederatedService, FederatedServiceCollection, DynamicFederatedServiceCollectionImpl, 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)
           
 

Method Detail

addService

void addService(String url,
                String serviceClass,
                Map<String,String> properties)

removeService

void removeService(String url)

getServices

List<FederatedServiceRegistryEntry> getServices(String serviceClass,
                                                Map<String,String> properties)

setServiceStatus

void setServiceStatus(String url,
                      boolean enabled)

getAllServices

List<FederatedServiceRegistryEntry> getAllServices()

removeAllServices

void removeAllServices()


Copyright © 2011 OneBusAway. All Rights Reserved.