Rio Project 4.2 API Documentation



org.rioproject.fdh
Class HeartbeatClient

java.lang.Object
  extended by org.rioproject.fdh.HeartbeatClient

public class HeartbeatClient
extends Object

The heartbeat client that produces heartbeat broadcasts

Author:
Dennis Reedy

Field Summary
static String HEARTBEAT_PERIOD_KEY
           
static String HEARTBEAT_SERVER_KEY
           
 
Constructor Summary
HeartbeatClient(Uuid uuid)
          Create a HeartbeatClient with the uuid for the Service
 
Method Summary
 void addHeartbeatServer(String[] configArgs)
          Start sending heartbeats to another server
static void main(String[] args)
           
 void terminate()
          Stop sending heartbeats to all heartbeat server instances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEARTBEAT_SERVER_KEY

public static final String HEARTBEAT_SERVER_KEY
See Also:
Constant Field Values

HEARTBEAT_PERIOD_KEY

public static final String HEARTBEAT_PERIOD_KEY
See Also:
Constant Field Values
Constructor Detail

HeartbeatClient

public HeartbeatClient(Uuid uuid)
Create a HeartbeatClient with the uuid for the Service

Parameters:
uuid - The unique identifier of the service
Method Detail

terminate

public void terminate()
Stop sending heartbeats to all heartbeat server instances


addHeartbeatServer

public void addHeartbeatServer(String[] configArgs)
                        throws ConfigurationException
Start sending heartbeats to another server

Parameters:
configArgs - Configuration entries
Throws:
ConfigurationException - if the configuration cannot be read

main

public static void main(String[] args)

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.