|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.Connector
public class Connector
This class defines a Connector
| Field Summary | |
|---|---|
protected int |
heartbeatMillis
|
protected java.lang.String |
host
|
protected long |
lastEpochNumber
|
protected java.lang.String |
lastEventId
|
protected long |
lastSeqno
|
protected PluginContext |
pluginContext
|
protected int |
port
|
protected int |
resetPeriod
|
protected boolean |
useSSL
|
| Constructor Summary | |
|---|---|
Connector()
Creates a new instance. |
|
Connector(PluginContext context,
java.lang.String remoteURI,
int resetPeriod,
long lastSeqno,
long lastEpochNumber,
int heartbeatMillis)
Creates a new Connector object Creates a new
Connector object |
|
| Method Summary | |
|---|---|
void |
close()
Close channel. |
void |
configure(PluginContext context)
Complete plug-in configuration. |
void |
connect()
TODO: connect definition. |
long |
getMaxSeqNo()
Return maximum sequence number stored on server. |
long |
getMinSeqNo()
Return minimum sequence number stored on server. |
java.lang.String |
getServerCapability(java.lang.String name)
Return server capability by name. |
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
ReplEvent |
requestEvent(long seqNo)
Fetch an event from server. |
void |
setHeartbeatMillis(int heartbeatMillis)
Sets the number of milliseconds between heartbeats. |
void |
setLastEpochNumber(long lastEpochNumber)
Sets the lastEpochNumber value. |
void |
setLastEventId(java.lang.String lastEventId)
|
void |
setLastSeqno(long lastSeqno)
Sets the lastSeqno value. |
void |
setResetPeriod(int resetPeriod)
Sets the resetPeriod value. |
void |
setURI(java.lang.String connectUri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PluginContext pluginContext
protected java.lang.String host
protected int port
protected boolean useSSL
protected int resetPeriod
protected long lastSeqno
protected long lastEpochNumber
protected int heartbeatMillis
protected java.lang.String lastEventId
| Constructor Detail |
|---|
public Connector()
public Connector(PluginContext context,
java.lang.String remoteURI,
int resetPeriod,
long lastSeqno,
long lastEpochNumber,
int heartbeatMillis)
throws ReplicatorException
Connector object Creates a new
Connector object
remoteURI - URI string pointing to remote hostresetPeriod - output stream resetting period
ReplicatorException| Method Detail |
|---|
public void connect()
throws ReplicatorException,
java.io.IOException
ReplicatorException
java.io.IOExceptionpublic void close()
public ReplEvent requestEvent(long seqNo)
throws ReplicatorException,
java.io.IOException
seqNo -
ReplicatorException
java.io.IOExceptionpublic java.lang.String getServerCapability(java.lang.String name)
public long getMinSeqNo()
public long getMaxSeqNo()
public void configure(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorPlugin
configure in interface ReplicatorPluginReplicatorException - Thrown if configuration is incomplete or
fails
java.lang.InterruptedException
public void prepare(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorPlugin
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation fails
java.lang.InterruptedException
public void release(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorPlugin
release in interface ReplicatorPluginReplicatorException - Thrown if resource deallocation fails
java.lang.InterruptedExceptionpublic void setResetPeriod(int resetPeriod)
resetPeriod - The resetPeriod to set.public void setLastSeqno(long lastSeqno)
lastSeqno - The lastSeqno to set.public void setLastEpochNumber(long lastEpochNumber)
lastEpochNumber - The lastEpochNumber to set.public void setURI(java.lang.String connectUri)
public void setHeartbeatMillis(int heartbeatMillis)
public void setLastEventId(java.lang.String lastEventId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||