}
RegistrantDatabase registrantDatabase = new RegistrantDatabase();
// AxisServer axisServer = new AxisServer();
// ConfigurationContext configurationContext = axisServer.getConfigurationContext();
ClusteringClient clusteringClient = new ClusteringClient(registrantDatabase);
configurationContext.setProperty(CartridgeAgentConstants.CLUSTERING_CLIENT, clusteringClient);
String healthCheckInterval = conf.getProperty("registrant.heathCheckInterval");
String threadPoolSize = conf.getProperty("registrant.healthCheckThreadPoolSize");
int healthCheckIntervalInt =
(healthCheckInterval == null) ? 2000 : Integer.parseInt(healthCheckInterval);
int threadPoolSizeInt =
(threadPoolSize == null) ? 10 : Integer.parseInt(healthCheckInterval);
log.info("Registrant health check interval: " + healthCheckIntervalInt + "s");
healthChecker = new RegistrantHealthChecker(registrantDatabase,
clusteringClient,
configurationContext,
healthCheckIntervalInt,
threadPoolSizeInt
);
clusteringClient.init(conf,
configurationContext,
new ELBMembershipListener(clusteringClient,
configurationContext,
registrantDatabase,
healthChecker));