com.tc.lcp
Class HeartBeatServer

java.lang.Object
  extended by com.tc.lcp.HeartBeatServer

public class HeartBeatServer
extends java.lang.Object


Field Summary
static java.lang.String IM_ALIVE
           
static java.lang.String IS_APP_SERVER_ALIVE
           
static java.lang.String KILL
           
static int MISS_ALLOW
           
static java.lang.String PULSE
           
static int PULSE_INTERVAL
           
 
Constructor Summary
HeartBeatServer()
           
 
Method Summary
 void addThread(com.tc.lcp.HeartBeatServer.HeartBeatThread hb)
           
 boolean anyAppServerAlive()
           
 int listeningPort()
           
static void log(java.lang.String message)
           
static void reallySleep(long millis)
           
 void removeDeadClient(com.tc.lcp.HeartBeatServer.HeartBeatThread thread)
           
 void sendKillSignalToChildren()
           
 void shutdown()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PULSE

public static final java.lang.String PULSE
See Also:
Constant Field Values

KILL

public static final java.lang.String KILL
See Also:
Constant Field Values

IS_APP_SERVER_ALIVE

public static final java.lang.String IS_APP_SERVER_ALIVE
See Also:
Constant Field Values

IM_ALIVE

public static final java.lang.String IM_ALIVE
See Also:
Constant Field Values

PULSE_INTERVAL

public static final int PULSE_INTERVAL
See Also:
Constant Field Values

MISS_ALLOW

public static final int MISS_ALLOW
See Also:
Constant Field Values
Constructor Detail

HeartBeatServer

public HeartBeatServer()
Method Detail

log

public static void log(java.lang.String message)

start

public void start()

shutdown

public void shutdown()

sendKillSignalToChildren

public void sendKillSignalToChildren()

anyAppServerAlive

public boolean anyAppServerAlive()

removeDeadClient

public void removeDeadClient(com.tc.lcp.HeartBeatServer.HeartBeatThread thread)

addThread

public void addThread(com.tc.lcp.HeartBeatServer.HeartBeatThread hb)

listeningPort

public int listeningPort()

reallySleep

public static void reallySleep(long millis)


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.