Method Summary |
|
public boolean | accept(Serializable msg, Member sender) |
public void | addClusterListener(ClusterListener listener) |
public void | addLifecycleListener(LifecycleListener listener) Add a lifecycle event listener to this component. |
public void | addValve(Valve valve) |
public void | backgroundProcess() Execute a periodic task, such as reloading, etc. |
protected void | checkDefaults() |
public synchronized Manager | createManager(String name) |
public ClusterListener[] | findClusterListeners() Get the cluster listeners associated with this cluster. |
public LifecycleListener[] | findLifecycleListeners() Get the lifecycle listeners associated with this lifecycle. |
public Channel | getChannel() |
public int | getChannelSendOptions() |
public org.apache.catalina.ha.ClusterDeployer | getClusterDeployer() |
public String | getClusterName() Return the name of the cluster that this Server is currently configured
to operate within. |
public Container | getContainer() |
public String | getInfo() Return descriptive information about this Cluster implementation and the
corresponding version number, in the format
<description>/<version> . |
public Member | getLocalMember() Return the member that represents this node. |
public Log | getLogger() |
public Manager | getManager(String name) |
public String | getManagerClassName() |
public String | getManagerName(String name, Manager manager) |
public ClusterManager | getManagerTemplate() |
public Map | getManagers() |
public Member[] | getMembers() |
public Object | getProperty(String key) |
public Iterator | getPropertyNames() |
public String | getProtocol() |
public Valve[] | getValves() |
public boolean | hasMembers() |
public boolean | isHeartbeatBackgroundEnabled() |
public boolean | isNotifyLifecycleListenerOnFailure() |
public void | lifecycleEvent(LifecycleEvent lifecycleEvent) Use as base to handle start/stop/periodic Events from host. |
public void | memberAdded(Member member) |
public void | memberDisappeared(Member member) |
public void | messageReceived(Serializable message, Member sender) |
public void | messageReceived(ClusterMessage message) |
protected void | registerClusterValve() |
public void | registerManager(Manager manager) |
public void | removeClusterListener(ClusterListener listener) |
public void | removeLifecycleListener(LifecycleListener listener) Remove a lifecycle event listener from this component. |
public void | removeManager(Manager manager) |
public void | removeProperty(String key) remove a configured property. |
public void | send(ClusterMessage msg) |
public void | send(ClusterMessage msg, Member dest) |
public void | sendClusterDomain(ClusterMessage msg) |
public void | setChannel(Channel channel) |
public void | setChannelSendOptions(int channelSendOptions) |
public void | setClusterDeployer(org.apache.catalina.ha.ClusterDeployer clusterDeployer) |
public void | setClusterName(String clusterName) Set the name of the cluster to join, if no cluster with this name is
present create one. |
public void | setContainer(Container container) |
public void | setHeartbeatBackgroundEnabled(boolean heartbeatBackgroundEnabled) |
public void | setManagerClassName(String managerClassName) |
public void | setManagerTemplate(ClusterManager managerTemplate) |
public void | setNotifyLifecycleListenerOnFailure(boolean notifyListenerOnFailure) |
public void | setProperty(String name, String value) |
public void | setProperty(String name, Object value) |
public void | setProtocol(String protocol) |
public void | start() Prepare for the beginning of active use of the public methods of this
component. |
public void | stop() Gracefully terminate the active cluster component.
This will disconnect the cluster communication channel, stop the
listener and deregister the valves from host or engine.
Note: The sub elements receiver, sender, membership,
listener or valves are not removed. |
protected void | transferProperty(String prefix, Object bean) transfer properties from cluster configuration to subelement bean. |
protected void | unregisterClusterValve() |