public class TextProtocol.MessageExchange
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
java.lang.Exception |
exception |
java.net.InetSocketAddress |
target |
Constructor and Description |
---|
TextProtocol.MessageExchange(java.net.InetSocketAddress target,
java.lang.String serviceName,
TextProtocol.RequestMessage request) |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException() |
TextProtocol.RequestMessage |
getRequestMessage() |
TextProtocol.ResponseMessage |
getResponseMessage()
Returns the response message.
|
void |
messageExchange()
Run a message exchange.
|
void |
run() |
void |
setResponseMessage(TextProtocol.ResponseMessage responseMessage) |
public final java.net.InetSocketAddress target
public java.lang.Exception exception
public TextProtocol.MessageExchange(java.net.InetSocketAddress target, java.lang.String serviceName, TextProtocol.RequestMessage request)
public void run()
run
in interface java.lang.Runnable
public void messageExchange()
public void setResponseMessage(TextProtocol.ResponseMessage responseMessage)
public TextProtocol.ResponseMessage getResponseMessage()
Note: MasterTransfer currently returns null upon success (there may be others), it would be preferable if they returned an explicit OK response if possible. Need to review.
public TextProtocol.RequestMessage getRequestMessage()
public java.lang.Exception getException()
Copyright (c) 2004-2012 Oracle. All rights reserved.