Class SSLStompClient
java.lang.Object
org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient
org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompCommonClient
org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient
org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClient
- Direct Known Subclasses:
SSLStompListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient
ReactorClient.MessageListener -
Field Summary
FieldsFields inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient
log, nioEngine, selectorFields inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompCommonClient
connected, DEFAULT_REQUEST_QUEUE, DEFAULT_RESPONSE_QUEUE, headerBuffer, message, subscribed, subscriptionIdsFields inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient
BUFFER_SIZE, channel, CLIENT_CLOSED, eventListeners, half, ibuff, key, outbox, PEER_CERTIFICATE_EMPTY_LIST, policy, reactor -
Constructor Summary
ConstructorsConstructorDescriptionSSLStompClient(Reactor reactor, Selector selector, String hostname, int port, SSLContext sslContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected OneTimeCallbackbooleanisInInit()protected voidpostConnect(OneTimeCallback callback) Transport specific post connection functionality.voidsendMessage(byte[] message) Sends message using provided byte array.private voidprivate voidMethods inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient
createSSLEngine, getPeerCertificates, postDisconnect, process, read, updateInterestedOps, writeMethods inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompCommonClient
buildNetworkResponse, clean, close, emitOnMessageReceived, getEventQueue, getRequestQueue, getResponseQueue, processIncoming, send, sendHeartbeat, sendNow, updatePolicyWithHeartbeat, validateMethods inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient
addEventListener, closeChannel, connect, disconnect, emitOnMessageReceived, getClientId, getConnectionId, getHostname, getRetryPolicy, getSelectionKey, isOpen, now, performAction, processOutgoing, removeEventListener, scheduleTask, setClientPolicy, updateLastIncomingHeartbeat, updateLastOutgoingHeartbeat
-
Field Details
-
callback
-
-
Constructor Details
-
SSLStompClient
public SSLStompClient(Reactor reactor, Selector selector, String hostname, int port, SSLContext sslContext)
-
-
Method Details
-
sendMessage
public void sendMessage(byte[] message) Description copied from class:ReactorClientSends message using provided byte array.- Specified by:
sendMessagein classReactorClient- Parameters:
message- - content of the message to sent.
-
postConnect
Description copied from class:ReactorClientTransport specific post connection functionality.- Overrides:
postConnectin classSSLClient- Parameters:
callback- - callback which is executed after connection is estabilished.- Throws:
ClientConnectionException- when issues with connection.
-
getPostConnectCallback
- Specified by:
getPostConnectCallbackin classReactorClient- Returns:
- Client specific
OneTimeCallbackor null. The callback is executed after the connection is established.
-
setWaitForConnect
private void setWaitForConnect() -
waitForConnect
private void waitForConnect() -
isInInit
public boolean isInInit()- Specified by:
isInInitin classReactorClient- Returns:
truewhen connection initialization is in progress like SSL hand shake.falsewhen connection is initialized.
-