org.onebusaway.federations.impl
Class FederatedServiceEntryImpl

java.lang.Object
  extended by org.onebusaway.federations.impl.FederatedServiceEntryImpl

public class FederatedServiceEntryImpl
extends Object

Federated service registry entry helper class for FederatedServiceRegistryImpl

Author:
bdferris

Constructor Summary
FederatedServiceEntryImpl(String serviceUrl, String serviceClass, Map<String,String> properties)
           
 
Method Summary
 FederatedServiceRegistryEntry getAsEntry()
           
 long getExpiresAfter()
           
 Map<String,String> getProperties()
           
 String getServiceClass()
           
 String getServiceUrl()
           
 boolean isApplicable(Map<String,String> properties)
          Determines if a particular service entry is applicable for a set of target properties.
 boolean isEnabled()
           
 boolean isExpired()
           
 void setEnabled(boolean enabled)
           
 void setExpiresAfter(long expiresAfter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FederatedServiceEntryImpl

public FederatedServiceEntryImpl(String serviceUrl,
                                 String serviceClass,
                                 Map<String,String> properties)
Method Detail

setEnabled

public void setEnabled(boolean enabled)

isApplicable

public boolean isApplicable(Map<String,String> properties)
Determines if a particular service entry is applicable for a set of target properties. A service is applicable if the service has property values equals to all those specified in properties.

Parameters:
properties -
Returns:

getExpiresAfter

public long getExpiresAfter()

setExpiresAfter

public void setExpiresAfter(long expiresAfter)

isExpired

public boolean isExpired()

getServiceUrl

public String getServiceUrl()

getServiceClass

public String getServiceClass()

getProperties

public Map<String,String> getProperties()

isEnabled

public boolean isEnabled()

getAsEntry

public FederatedServiceRegistryEntry getAsEntry()


Copyright © 2011 OneBusAway. All Rights Reserved.