org.apache.directory.server.ldap.replication.consumer
Class PingerThread
java.lang.Object
java.lang.Thread
org.apache.directory.server.ldap.replication.consumer.PingerThread
- All Implemented Interfaces:
- Runnable
public class PingerThread
- extends Thread
A thread used to ping the provider o check if they are alive or not.
- Author:
- Apache Directory Project
|
Constructor Summary |
PingerThread()
Create a new instance of this thread. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
PingerThread
public PingerThread()
- Create a new instance of this thread.
run
public void run()
- Starts the thread
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
addConsumer
public void addConsumer(ReplicationConsumer consumer)
- Add a new consumer to ping
- Parameters:
consumer - The consumer we want to ping
removeConsumer
public void removeConsumer(ReplicationConsumer consumer)
- Remove a consumer to ping
- Parameters:
consumer - The consumer we want to remove
stopPinging
public void stopPinging()
- Stops the ping for all the consumers
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.