Platform SDK Java 8.5 API Reference

com.genesyslab.platform.management.protocol.localcontrolagentheartbeat.runtime
Class UdpConnectionImpl

java.lang.Object
  extended by com.genesyslab.platform.commons.connection.impl.AbstractConnection
      extended by com.genesyslab.platform.commons.connection.impl.AbstractConnectionImpl
          extended by com.genesyslab.platform.management.protocol.localcontrolagentheartbeat.runtime.UdpConnectionImpl
All Implemented Interfaces:
Connection, com.genesyslab.platform.commons.connection.impl.ConnectionImpl

public class UdpConnectionImpl
extends com.genesyslab.platform.commons.connection.impl.AbstractConnectionImpl
implements Connection, com.genesyslab.platform.commons.connection.impl.ConnectionImpl


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

UdpConnectionImpl

public UdpConnectionImpl()
Method Detail

open

public void open()
Description copied from interface: Connection
Opens network connection to the server. Please note, that usually this method will return immediately and won't wait while connection is established. (connection process is asynchronous).

Specified by:
open in interface Connection
Overrides:
open in class com.genesyslab.platform.commons.connection.impl.AbstractConnection

attach

public void attach(java.nio.channels.DatagramChannel channel)
            throws java.io.IOException
Throws:
java.io.IOException

getUri

public java.lang.String getUri()
Description copied from interface: Connection
Gets address of the connection.

Specified by:
getUri in interface Connection
Overrides:
getUri in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
Returns:
connection address

setUri

public void setUri(java.lang.String host,
                   int port)
Specified by:
setUri in interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl
Overrides:
setUri in class com.genesyslab.platform.commons.connection.impl.AbstractConnection

getWritePipe

public com.genesyslab.platform.commons.connection.impl.WritePipe getWritePipe()
Specified by:
getWritePipe in interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl

getChannel

public java.nio.channels.DatagramChannel getChannel()

startClose

protected void startClose(java.lang.Throwable closeReason)
Specified by:
startClose in class com.genesyslab.platform.commons.connection.impl.AbstractConnection

doClose

protected void doClose(java.lang.Throwable closeReason)
Overrides:
doClose in class com.genesyslab.platform.commons.connection.impl.AbstractConnection

getRemoteEndPoint

public java.net.InetSocketAddress getRemoteEndPoint()
Gets current remote InetSocketAddress of socket, if it is created.

Specified by:
getRemoteEndPoint in interface Connection
Returns:
connection remote endpoint or null

getLocalEndPoint

public java.net.InetSocketAddress getLocalEndPoint()
Gets current local InetSocketAddress of socket, if it is created.

Specified by:
getLocalEndPoint in interface Connection
Returns:
connection local endpoint or null

hasUnsetBytes

public boolean hasUnsetBytes()
Description copied from interface: Connection
Checks if some unsent bytes have been ramained.

Specified by:
hasUnsetBytes in interface Connection
Overrides:
hasUnsetBytes in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
Returns:
true if some unsent bytes have been ramained.

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.