org.apache.stratos.cartridge.agent.registrant
Class RegistrantUtil

java.lang.Object
  extended by org.apache.stratos.cartridge.agent.registrant.RegistrantUtil

public class RegistrantUtil
extends Object

Utility method collection for handling Registrants

See Also:
Registrant

Constructor Summary
RegistrantUtil()
           
 
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
 

Constructor Detail

RegistrantUtil

public RegistrantUtil()
Method Detail

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 - ClusteringClient
configurationContext - ConfigurationContext
registrantDatabase - RegistrantDatabase
Throws:
CartridgeAgentException - If reloading registrants fails


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.