com.bigdata.jini.start.config
Class MaxClientServicesPerHostConstraint
java.lang.Object
com.bigdata.jini.start.config.MaxServicesPerHostConstraint
com.bigdata.jini.start.config.MaxClientServicesPerHostConstraint
- All Implemented Interfaces:
- IServiceConstraint, Serializable
public class MaxClientServicesPerHostConstraint
- extends MaxServicesPerHostConstraint
Constraint on the #of IClientServices on the same host.
- See Also:
- Serialized Form
|
Method Summary |
boolean |
allow(JiniFederation fed)
Return true iff a service may be instantiated on this
host. |
MaxClientServicesPerHostConstraint
public MaxClientServicesPerHostConstraint(int maxServices)
- Parameters:
className - maxServices - timeout -
allow
public boolean allow(JiniFederation fed)
throws Exception
- Description copied from interface:
IServiceConstraint
- Return
true iff a service may be instantiated on this
host.
Note: Constraints which can be evaluated without the federation reference
MUST NOT throw an exception if that reference is null.
This allows us to evaluate constraints for boostrap services as well as
for ManagedServiceConfigurations
- Parameters:
fed - The federation.
- Throws:
Exception
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.