org.apache.stratos.cartridge.agent.registrant
Class RegistrantUtil
java.lang.Object
org.apache.stratos.cartridge.agent.registrant.RegistrantUtil
public class RegistrantUtil
- extends Object
Utility method collection for handling Registrants
- See Also:
Registrant
|
Method Summary |
static boolean |
isHealthy(Registrant registrant)
Before adding a member, we will try to verify whether we can connect to it |
static void |
reloadRegistrants(ClusteringClient clusteringClient,
org.apache.axis2.context.ConfigurationContext configurationContext,
RegistrantDatabase registrantDatabase)
Reload all the registrants persisted in the file system |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistrantUtil
public RegistrantUtil()
isHealthy
public static boolean isHealthy(Registrant registrant)
- Before adding a member, we will try to verify whether we can connect to it
- Parameters:
registrant - The member whose connectvity needs to be verified
- Returns:
- true, if the member can be contacted; false, otherwise.
reloadRegistrants
public static void reloadRegistrants(ClusteringClient clusteringClient,
org.apache.axis2.context.ConfigurationContext configurationContext,
RegistrantDatabase registrantDatabase)
throws CartridgeAgentException
- Reload all the registrants persisted in the file system
- Parameters:
clusteringClient - ClusteringClientconfigurationContext - ConfigurationContextregistrantDatabase - RegistrantDatabase
- Throws:
CartridgeAgentException - If reloading registrants fails
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.