|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IKernelChannel
Method Detail |
---|
void open() throws IOException
IOException
void open(boolean blocking) throws IOException
IOException
void setSecure(String requestedProtocol, String requestedCipherSuite)
boolean isSecure()
boolean isCryptoAvailable()
String getCipherSuite()
String getProtocol()
String getRequestedCipherSuite()
String getRequestedProtocol()
void setCertificate(X509Certificate certificate)
InetSocketAddress getRemoteAddress()
InetSocketAddress getLocalAddress()
int getPort()
int getLocalPort()
boolean isConnected()
void setConnectTimeout(long connectTimeout)
void registerConnect(Selector s, Object o) throws ClosedChannelException, com.ibm.rational.test.lt.kernel.io.KMonitoredChannelException
ClosedChannelException
com.ibm.rational.test.lt.kernel.io.KMonitoredChannelException
boolean connect(InetSocketAddress address) throws Exception
Exception
boolean connect(InetSocketAddress localAddress, InetSocketAddress remoteAddress) throws Exception
Exception
boolean finishConnect() throws IOException
IOException
void handshake() throws Exception
This should not be called as a matter of course. If the KChannel was configured for SSL before the call to connect(), the handshake would occur automatically before the handleConnect() callback is called.
If the original connect was made without SSL enabled (as is the case with SSL over a Proxy), the channel can be converted to a secure channel by calling setSecure(...) and then handshake().
Exception
- if the channel fails to handshake properlyIKernelChannel.setSecure(String, String)
,
IKChannel.connect(InetSocketAddress)
,
IKChannel.handleConnect(Throwable)
void setWriteTimeout(long writeTimeout)
int write(ByteBuffer buffer) throws Exception
Exception
WritableByteChannel.write(ByteBuffer)
void setReadTimeout(long readTimeout)
SelectionKey registerRead(Selector s, Object o) throws ClosedChannelException, com.ibm.rational.test.lt.kernel.io.KMonitoredChannelException
ClosedChannelException
com.ibm.rational.test.lt.kernel.io.KMonitoredChannelException
int read(ByteBuffer buffer) throws Exception
Exception
boolean unwrap(int readCount, ByteBuffer buffer) throws Exception
Exception
void close() throws IOException
IOException
boolean monitorPeerClose(boolean b)
boolean isMonitorPeerClose()
void setLocalAddress(InetSocketAddress local)
void debugHandshake(String s)
void setKChannel(IKChannel kChannel)
void setDestinationHostName(String hostName)
void setDestinationPort(int port)
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |