Class SSLStompListener
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
org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompListener
- All Implemented Interfaces:
Sender
-
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.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
ConstructorsConstructorDescriptionSSLStompListener(Reactor reactor, Selector selector, String hostname, int port, SocketChannel socketChannel, SSLContext sslContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpostConnect(OneTimeCallback callback) Transport specific post connection functionality.(package private) voidprocessMessage(Message message) voidsendMessage(byte[] message) Sends message using provided byte array.voidsetClientPolicy(ClientPolicy policy) Methods inherited from class org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClient
getPostConnectCallback, isInInitMethods 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, updateLastIncomingHeartbeat, updateLastOutgoingHeartbeat
-
Field Details
-
log
private static org.slf4j.Logger log -
commandFactory
-
-
Constructor Details
-
SSLStompListener
public SSLStompListener(Reactor reactor, Selector selector, String hostname, int port, SocketChannel socketChannel, SSLContext sslContext) throws ClientConnectionException - Throws:
ClientConnectionException
-
-
Method Details
-
sendMessage
public void sendMessage(byte[] message) Description copied from class:ReactorClientSends message using provided byte array.- Overrides:
sendMessagein classSSLStompClient- Parameters:
message- - content of the message to sent.
-
setClientPolicy
- Overrides:
setClientPolicyin classReactorClient
-
processMessage
-
postConnect
Description copied from class:ReactorClientTransport specific post connection functionality.- Overrides:
postConnectin classSSLStompClient- Parameters:
callback- - callback which is executed after connection is estabilished.- Throws:
ClientConnectionException- when issues with connection.
-