public class VattHandler extends AbstractSocketDriver
It is currently unknown if it is advisable to close the communication after each transmission, the behaviour is governed by {} which is default set to false.
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DEFALWAYSCLOSE
Default port for the DCP.
|
private static int |
DEFSOCKETPORT
Default port for the DCP.
|
static String |
KEY_ALWAYSCLOSE
The wait period for a sender to check its queue.
|
private VattInputStream |
vin
Input stream ready after open.
|
private VattOutputStream |
vout
Output stream ready after open.
|
KEY_CLOSETIMEOUT, KEY_SOCKETPORT, KEY_SOCKETSERVER, KEY_SOCKETTIMEOUTKEY_DRIVERNAMEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
VattHandler(Map<String,String> prop)
Low-level Communication is deferred to the parental class that provides
access to an input and an output stream.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
open()
Connect to remote host.
|
VattAcknowledgeMessage |
sendCommand(VattCommandMessage cmd) |
authenticate, close, exit, getInputStream, getOutputStream, getSocket, init, isOpen, setTimeoutcreateDriver, equals, getDriverName, hashCodeaugment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetDriverNamepublic static final String KEY_ALWAYSCLOSE
private static final int DEFSOCKETPORT
private static final boolean DEFALWAYSCLOSE
private VattOutputStream vout
private VattInputStream vin
public boolean open()
throws IOException
open in interface Driveropen in class AbstractSocketDriverIOException - Exception to throw on connection errorpublic VattAcknowledgeMessage sendCommand(VattCommandMessage cmd) throws IOException
IOException