|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.connection.impl.AbstractConnection
com.genesyslab.platform.commons.connection.impl.AbstractConnectionImpl
com.genesyslab.platform.management.protocol.localcontrolagentheartbeat.runtime.UdpConnectionImpl
public class UdpConnectionImpl
Nested Class Summary | |
---|---|
static class |
UdpConnectionImpl.BufferWritePoint
|
Nested classes/interfaces inherited from class com.genesyslab.platform.commons.connection.impl.AbstractConnection |
---|
com.genesyslab.platform.commons.connection.impl.AbstractConnection.CloseCommand |
Field Summary |
---|
Fields inherited from class com.genesyslab.platform.commons.connection.impl.AbstractConnectionImpl |
---|
config |
Fields inherited from class com.genesyslab.platform.commons.connection.impl.AbstractConnection |
---|
_syncConfig, address, connHandler, host, port |
Fields inherited from interface com.genesyslab.platform.commons.connection.Connection |
---|
BACKUP_BIND_PORT_KEY, BIND_HOST_KEY, BIND_PORT_KEY, CONNECTION_TIMEOUT_KEY, DEFAULT_ENABLE_IPV6, DEFAULT_IP_VERSION, DEFAULT_OPERATION_TIMEOUT, ENABLE_IPV6_KEY, IP_VERSION_4_6, IP_VERSION_6_4, IP_VERSION_KEY, KEEP_ALIVE_KEY, LAZY_PARSING_ENABLED_KEY, OPERATION_TIMEOUT_KEY, REUSE_ADDRESS_KEY, SSL_KEYSTORE_PASS, SSL_KEYSTORE_PATH_KEY, STR_ATTR_ENCODING_NAME_KEY, TLS_KEY, TLS_VERSION_KEY |
Constructor Summary | |
---|---|
UdpConnectionImpl()
|
Method Summary | |
---|---|
void |
attach(java.nio.channels.DatagramChannel channel)
|
protected void |
doClose(java.lang.Throwable closeReason)
|
java.nio.channels.DatagramChannel |
getChannel()
|
java.net.InetSocketAddress |
getLocalEndPoint()
Gets current local InetSocketAddress of socket, if it is created. |
java.net.InetSocketAddress |
getRemoteEndPoint()
Gets current remote InetSocketAddress of socket, if it is created. |
java.lang.String |
getUri()
Gets address of the connection. |
com.genesyslab.platform.commons.connection.impl.WritePipe |
getWritePipe()
|
boolean |
hasUnsetBytes()
Checks if some unsent bytes have been ramained. |
void |
open()
Opens network connection to the server. |
void |
setUri(java.lang.String host,
int port)
|
protected void |
startClose(java.lang.Throwable closeReason)
|
Methods inherited from class com.genesyslab.platform.commons.connection.impl.AbstractConnectionImpl |
---|
bytesToHexDump, configure, getConfigLocalEndpoint, getConfigTimeout, getConfigTimeout, getConnectionHandler, getInterceptor, getInvoker, getMessagePackager, getMessageTransport, getProtocol, getUsedLocalBindPort, initProtocol, isServerConnection, reconfigProtocol, setInvoker, setMessagePackager, setMessageTransport, setServerConnection, setStringAttributesEncoding |
Methods inherited from class com.genesyslab.platform.commons.connection.impl.AbstractConnection |
---|
close, close, context, forceClose, forceClose, getConnection, getConnectionState, getExecutor, getHost, getId, getLocalBindHost, getLocalBindPort, getPort, getStringAttributesEncoding, getUnsetBytes, notifyCloseHandler, notifyEstablishedHandler, registerConfigurationHandlers, setConnectionHandler, setConnectionState, setContext, setExecutor, setLocalBindHost, setLocalBindPort, setUri, toString, unregisterConfigurationHandlers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.genesyslab.platform.commons.connection.Connection |
---|
close, configure, forceClose, getConnectionState, getHost, getId, getInterceptor, getLocalBindHost, getLocalBindPort, getMessagePackager, getMessageTransport, getPort, getUnsetBytes, setConnectionHandler, setContext, setInvoker, setLocalBindHost, setLocalBindPort, setMessagePackager, setMessageTransport |
Methods inherited from interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl |
---|
close, context, getConnection, getConnectionHandler, getInvoker, getProtocol, getStringAttributesEncoding, setUri |
Constructor Detail |
---|
public UdpConnectionImpl()
Method Detail |
---|
public void open()
Connection
open
in interface Connection
open
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public void attach(java.nio.channels.DatagramChannel channel) throws java.io.IOException
java.io.IOException
public java.lang.String getUri()
Connection
getUri
in interface Connection
getUri
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public void setUri(java.lang.String host, int port)
setUri
in interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl
setUri
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public com.genesyslab.platform.commons.connection.impl.WritePipe getWritePipe()
getWritePipe
in interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl
public java.nio.channels.DatagramChannel getChannel()
protected void startClose(java.lang.Throwable closeReason)
startClose
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
protected void doClose(java.lang.Throwable closeReason)
doClose
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public java.net.InetSocketAddress getRemoteEndPoint()
InetSocketAddress
of socket, if it is created.
getRemoteEndPoint
in interface Connection
public java.net.InetSocketAddress getLocalEndPoint()
InetSocketAddress
of socket, if it is created.
getLocalEndPoint
in interface Connection
public boolean hasUnsetBytes()
Connection
hasUnsetBytes
in interface Connection
hasUnsetBytes
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |