org.apache.geronimo.messaging.remotenode
Class RemoteNodeMonitor

java.lang.Object
  extended byorg.apache.geronimo.messaging.remotenode.RemoteNodeMonitor

public class RemoteNodeMonitor
extends Object

RemoteNode monitor.

Version:
$Revision: 1.4 $ $Date: 2004/07/20 00:15:06 $

Field Summary
static long IDLE_TIME
          Nodes which have been idle for more than this number of milliseconds are left.
static long MONITOR_PERIOD
          Number of milliseconds between two scans.
 
Constructor Summary
RemoteNodeMonitor(RemoteNodeManager aManager, org.apache.geronimo.pool.ClockPool aClockPool)
          Creates a monitor for the RemoteNodes managed by aManager.
 
Method Summary
 void scheduleNodeDeletion(Set aNodes)
          Schedules the deletion of the specified nodes.
 void start()
          Start the monitoring.
 void stop()
          Stops the monitoring.
 void unscheduleNodeDeletion(Set aNodes)
          Unschedules the deletion of the specified nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MONITOR_PERIOD

public static final long MONITOR_PERIOD
Number of milliseconds between two scans.

See Also:
Constant Field Values

IDLE_TIME

public static final long IDLE_TIME
Nodes which have been idle for more than this number of milliseconds are left.

See Also:
Constant Field Values
Constructor Detail

RemoteNodeMonitor

public RemoteNodeMonitor(RemoteNodeManager aManager,
                         org.apache.geronimo.pool.ClockPool aClockPool)
Creates a monitor for the RemoteNodes managed by aManager.

Parameters:
aManager - Manager whose RemoteNodes are to be monitored.
aClockPool - To schedule recurrent tasks.
Method Detail

start

public void start()
Start the monitoring.


stop

public void stop()
Stops the monitoring.


scheduleNodeDeletion

public void scheduleNodeDeletion(Set aNodes)
Schedules the deletion of the specified nodes.

Parameters:
aNodes - Set

unscheduleNodeDeletion

public void unscheduleNodeDeletion(Set aNodes)
Unschedules the deletion of the specified nodes.

Parameters:
aNodes - Set


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.