org.archive.hcc.client
Class ClusterControllerClientManager

java.lang.Object
  extended by org.archive.hcc.client.ClusterControllerClientManager

public class ClusterControllerClientManager
extends java.lang.Object

This class manages singleton instances of the ClusterControllerClient. Within a jvm there will be one instance of ClusterControllerClient for each jmx socket address (assuming that a ClusterControllerBean is running on that local or remote socket).

Author:
Daniel Bernstein (dbernstein@archive.org)

Constructor Summary
ClusterControllerClientManager()
           
 
Method Summary
static ClusterControllerClient getDefaultClient()
          Returns this singleton instance of the default cluster controller client.
static void resetDefaultClient()
          Removes the manager's reference to the default client for use with unit tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterControllerClientManager

public ClusterControllerClientManager()
Method Detail

getDefaultClient

public static ClusterControllerClient getDefaultClient()
Returns this singleton instance of the default cluster controller client. The host and jmx port can be set in the following command line options. -Dorg.archive.hcc.client.host={your host} -Dorg.archive.hcc.client.jmxPort={your port} If you do not specify these values on the command line, the client will connect to the local jmx server on port 8849.

Returns:

resetDefaultClient

public static void resetDefaultClient()
Removes the manager's reference to the default client for use with unit tests.



Copyright © 2005-2008 The Internet Archive. All Rights Reserved.