com.continuent.tungsten.replicator.thl
Class Server

java.lang.Object
  extended by com.continuent.tungsten.replicator.thl.Server
All Implemented Interfaces:
java.lang.Runnable

public class Server
extends java.lang.Object
implements java.lang.Runnable

This class defines a Server

Version:
1.0
Author:
Teemu Ollakka

Constructor Summary
Server(PluginContext context, AtomicCounter sequencer, THL thl)
          Creates a new Server object
 
Method Summary
 java.util.LinkedList<ConnectorHandler> getClients()
          Returns list of this server's clients.
 void removeClient(ConnectorHandler client)
          Marks a client for removal.
 void run()
          
 void start()
          TODO: start definition.
 void stop()
          TODO: stop definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server(PluginContext context,
              AtomicCounter sequencer,
              THL thl)
       throws ReplicatorException
Creates a new Server object

Throws:
ReplicatorException
Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

removeClient

public void removeClient(ConnectorHandler client)
Marks a client for removal.


start

public void start()
           throws java.io.IOException
TODO: start definition.

Throws:
java.io.IOException

stop

public void stop()
          throws java.lang.InterruptedException
TODO: stop definition.

Throws:
java.lang.InterruptedException

getClients

public java.util.LinkedList<ConnectorHandler> getClients()
Returns list of this server's clients.