|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.ConnectorHandler
public class ConnectorHandler
This class defines a ConnectorHandler
| Constructor Summary | |
|---|---|
ConnectorHandler()
Creates a new ConnectorHandler object |
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
java.lang.String |
getRmiHost()
Gets client's RMI host. |
java.lang.String |
getRmiPort()
Gets client's RMI port. |
boolean |
isFinished()
Returns true if this handler has terminated and may be discarded. |
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
run()
Implements the connector handler loop, which runs until we are interrupted. |
void |
setRmiHost(java.lang.String rmiHost)
Sets client's RMI host. |
void |
setRmiPort(java.lang.String rmiPort)
Sets client's RMI port. |
void |
setServer(Server server)
Sets the server value. |
void |
setSocket(SocketWrapper socket)
Sets the server value. |
void |
setThl(THL thl)
Sets the thl value. |
void |
start()
Start the thread to serve thl changes to requesting slaves. |
void |
stop()
Stop the thread which is serving changes to requesting slaves. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectorHandler()
ConnectorHandler object
| Method Detail |
|---|
public boolean isFinished()
public void run()
run in interface java.lang.Runnablepublic void start()
public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void configure(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
configure in interface ReplicatorPluginReplicatorException - Thrown if configuration is incomplete or
fails
java.lang.InterruptedExceptionReplicatorPlugin.configure(com.continuent.tungsten.replicator.plugin.PluginContext)
public void prepare(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation fails
java.lang.InterruptedExceptionReplicatorPlugin.prepare(com.continuent.tungsten.replicator.plugin.PluginContext)
public void release(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
release in interface ReplicatorPluginReplicatorException - Thrown if resource deallocation fails
java.lang.InterruptedExceptionReplicatorPlugin.release(com.continuent.tungsten.replicator.plugin.PluginContext)public void setSocket(SocketWrapper socket)
public void setServer(Server server)
server - The server to set.public void setThl(THL thl)
thl - The thl to set.public void setRmiHost(java.lang.String rmiHost)
public void setRmiPort(java.lang.String rmiPort)
public java.lang.String getRmiHost()
public java.lang.String getRmiPort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||