class PersistentSendThread extends SendThread
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
PersistentSendThread.PointHierarchySync |
(package private) class |
PersistentSendThread.SyncTimer |
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
connecting |
(package private) java.io.InputStream |
in |
private long |
lastTestPacket |
(package private) static org.apache.commons.logging.Log |
LOG |
(package private) java.io.OutputStream |
out |
(package private) java.util.List<Packet> |
packetsToSend |
(package private) PersistentSendThread.PointHierarchySync |
pointHierarchySync |
(package private) PersistentSenderRT |
publisher |
(package private) java.net.Socket |
socket |
(package private) SyncHandler |
syncHandler |
(package private) PersistentSendThread.SyncTimer |
syncTimer |
(package private) int |
version |
(package private) com.serotonin.util.queue.ByteQueue |
writeBuffer |
| Constructor and Description |
|---|
PersistentSendThread(PersistentSenderRT publisher) |
| Modifier and Type | Method and Description |
|---|---|
private void |
closeConnection(int sleep) |
(package private) void |
endSyncHandler() |
int |
getConnectingIndex() |
private void |
getPointResponse() |
void |
initialize() |
boolean |
isConnected() |
private void |
openConnection() |
protected void |
runImpl() |
private void |
send(PublishQueueEntry<PersistentPointVO> entry) |
(package private) void |
sendPacket(Packet packet) |
(package private) boolean |
startSync() |
void |
terminate() |
(package private) void |
writePointHierarchy() |
(package private) void |
writePointHierarchy(PointHierarchy hierarchy) |
isRunning, joinTermination, run, waitImplactiveCount, 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, yieldstatic final org.apache.commons.logging.Log LOG
final PersistentSenderRT publisher
java.net.Socket socket
int connecting
java.io.InputStream in
java.io.OutputStream out
com.serotonin.util.queue.ByteQueue writeBuffer
int version
PersistentSendThread.SyncTimer syncTimer
SyncHandler syncHandler
PersistentSendThread.PointHierarchySync pointHierarchySync
final java.util.List<Packet> packetsToSend
private long lastTestPacket
public PersistentSendThread(PersistentSenderRT publisher)
public boolean isConnected()
public int getConnectingIndex()
public void initialize()
initialize in interface com.serotonin.util.ILifecycleinitialize in class SendThreadpublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class SendThreadprotected void runImpl()
runImpl in class SendThreadvoid sendPacket(Packet packet)
private void send(PublishQueueEntry<PersistentPointVO> entry) throws java.io.IOException
java.io.IOExceptionprivate void openConnection()
throws java.io.IOException,
PersistentProtocolException,
PersistentAbortException
java.io.IOExceptionPersistentProtocolExceptionPersistentAbortExceptionprivate void getPointResponse()
throws java.io.IOException,
PersistentAbortException,
PersistentProtocolException
java.io.IOExceptionPersistentAbortExceptionPersistentProtocolExceptionprivate void closeConnection(int sleep)
boolean startSync()
void endSyncHandler()
void writePointHierarchy()
void writePointHierarchy(PointHierarchy hierarchy)