public class NoopAppClient extends ReconfigurableAppClientAsync<Request> implements AppRequestParserBytes
ReconfigurableAppClientAsync.BlockingRequestCallback, ReconfigurableAppClientAsync.ReconfigurationException
CONNECTIVITY_CHECK_TIMEOUT, DEFAULT_GC_TIMEOUT
Constructor and Description |
---|
NoopAppClient() |
Modifier and Type | Method and Description |
---|---|
Request |
getRequest(byte[] message,
NIOHeader header)
The implementation of this method is tied to and must be the inverse of
Request.toBytes() , , i.e., invoking getRequest(request.toBytes(),
header).equals(request). |
Request |
getRequest(java.lang.String stringified)
An application must support string-to-
Request conversion and
back. |
java.util.Set<IntegerPacketType> |
getRequestTypes() |
static void |
main(java.lang.String[] args)
This simple client creates a bunch of names and sends a bunch of requests
to each of them.
|
checkConnectivity, checkConnectivity, checkConnectivity, close, enableJSONPackets, getDefaultServers, getLabel, getMaxOutstandingCRPRequests, getRequestFromJSON, sendReconfigurationRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequest, sendRequestAnycast, sendRequestAnycast, sendRequestAnycast, setGCTimeout, setMaxOutstandingAppRequests, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMutualAuthRequestTypes, getServerAuthRequestTypes
public NoopAppClient() throws java.io.IOException
java.io.IOException
public Request getRequest(java.lang.String stringified)
AppRequestParser
Request
conversion and
back. Furthermore, the conversion to a string and back must preserve the
return values of all Request
methods, i.e.,
Application.getRequest
(request.toString())).equals(request)
must be true.getRequest
in interface AppRequestParser
Request
corresponding to stringified
.public Request getRequest(byte[] message, NIOHeader header) throws RequestParseException
AppRequestParser
Request.toBytes()
, , i.e., invoking getRequest(request.toBytes(),
header).equals(request).getRequest
in interface AppRequestParser
getRequest
in interface AppRequestParserBytes
message
.RequestParseException
public java.util.Set<IntegerPacketType> getRequestTypes()
getRequestTypes
in interface AppRequestParser
public static void main(java.lang.String[] args) throws java.io.IOException
ReconfigurableAppClientAsync
for other utility methods available
to this method or to know how to write your own client.args
- java.io.IOException