Package deltix.util.vsocket
Class VSClient
- java.lang.Object
-
- deltix.util.vsocket.VSClient
-
- All Implemented Interfaces:
deltix.util.lang.Disposable
,deltix.util.lang.DisposableListener<VSDispatcher>
,java.io.Closeable
,java.lang.AutoCloseable
public class VSClient extends java.lang.Object implements deltix.util.lang.Disposable, deltix.util.lang.DisposableListener<VSDispatcher>
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_COMP_SERVER_VERSION
static int
MIN_COMP_SERVER_VERSION
static boolean
SSL_TERMINATION
static java.lang.String
SSL_TERMINATION_PROPERTY
-
Constructor Summary
Constructors Constructor Description VSClient(java.lang.String host, int port)
VSClient(java.lang.String host, int port, java.lang.String ownerID)
VSClient(java.lang.String host, int port, java.lang.String ownerID, boolean enableSSL, ContextContainer contextContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
connect()
void
disposed(VSDispatcher d)
VSDispatcher
getDispatcher()
java.lang.String
getHost()
long
getLatency()
int
getNumTransportChannels()
int
getPort()
int
getReconnectInterval()
long
getServerStartTime()
int
getSoTimeout()
int
getSSLPort()
int
getTimeout()
void
increaseNumTransportChannels()
boolean
isConnected()
boolean
isSSLEnabled()
VSChannel
openChannel()
VSChannel
openChannel(int inCapacity, int outCapacity, boolean compressed)
void
setDisconnectedListener(deltix.qsrv.hf.spi.conn.DisconnectEventListener listener)
void
setHost(java.lang.String host)
void
setNumTransportChannels(int numChannels)
void
setPort(int port)
void
setSoTimeout(int soTimeout)
void
setSslContext(javax.net.ssl.SSLContext sslContext)
void
setTimeout(int timeout)
java.lang.String
toString()
-
-
-
Field Detail
-
MIN_COMP_SERVER_VERSION
public static final int MIN_COMP_SERVER_VERSION
- See Also:
- Constant Field Values
-
MAX_COMP_SERVER_VERSION
public static final int MAX_COMP_SERVER_VERSION
- See Also:
- Constant Field Values
-
SSL_TERMINATION_PROPERTY
public static final java.lang.String SSL_TERMINATION_PROPERTY
- See Also:
- Constant Field Values
-
SSL_TERMINATION
public static final boolean SSL_TERMINATION
-
-
Constructor Detail
-
VSClient
public VSClient(java.lang.String host, int port, java.lang.String ownerID) throws java.io.IOException
- Throws:
java.io.IOException
-
VSClient
public VSClient(java.lang.String host, int port) throws java.io.IOException
- Throws:
java.io.IOException
-
VSClient
public VSClient(java.lang.String host, int port, java.lang.String ownerID, boolean enableSSL, ContextContainer contextContainer) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getSoTimeout
public int getSoTimeout()
-
setSoTimeout
public void setSoTimeout(int soTimeout)
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeout)
-
getHost
public java.lang.String getHost()
-
setHost
public void setHost(java.lang.String host)
-
getNumTransportChannels
public int getNumTransportChannels()
-
setNumTransportChannels
public void setNumTransportChannels(int numChannels)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
setSslContext
public void setSslContext(javax.net.ssl.SSLContext sslContext)
-
getServerStartTime
public long getServerStartTime()
-
getReconnectInterval
public int getReconnectInterval()
-
isConnected
public boolean isConnected()
-
connect
public void connect() throws java.io.IOException
- Throws:
java.io.IOException
-
getDispatcher
public VSDispatcher getDispatcher()
-
increaseNumTransportChannels
public void increaseNumTransportChannels() throws java.io.IOException
- Throws:
java.io.IOException
-
openChannel
public VSChannel openChannel() throws java.io.IOException
- Throws:
java.io.IOException
-
openChannel
public VSChannel openChannel(int inCapacity, int outCapacity, boolean compressed) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacedeltix.util.lang.Disposable
-
setDisconnectedListener
public void setDisconnectedListener(deltix.qsrv.hf.spi.conn.DisconnectEventListener listener)
-
getLatency
public long getLatency()
-
disposed
public void disposed(VSDispatcher d)
- Specified by:
disposed
in interfacedeltix.util.lang.DisposableListener<VSDispatcher>
-
isSSLEnabled
public boolean isSSLEnabled()
-
getSSLPort
public int getSSLPort()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-