public interface RequestDispatcher extends Versionable
| Modifier and Type | Method and Description |
|---|---|
String |
dispatchRequest(String input)
Dispatch an encoded request to the system and await some response.
|
int |
getPort()
Returns the port associated with the endpoint
|
void |
setConnectionTimeout(int timeInMilliseconds)
Sets the time to attempt to connect to a cluster.
|
void |
setReadTimeout(int timeInMilliseconds)
Sets the time to attempt to read data from a request to a cluster.
|
void |
setTimeoutToDefault()
Sets the time to attempt to connect to a cluster and the time
to attempt to read data from a request to a cluster to the default settings.
|
getVersionString dispatchRequest(String input)
throws IOException
input - The input string to send to the remote server.IOException - if anything went wrong on the connection side of things.void setConnectionTimeout(int timeInMilliseconds)
timeInMilliseconds - an int that specifies the timeout
value to be used in millisecondsIllegalArgumentException - if the timeout parameter is negativevoid setReadTimeout(int timeInMilliseconds)
timeInMilliseconds - an int that specifies the timeout
value to be used in millisecondsIllegalArgumentException - if the timeout parameter is negativevoid setTimeoutToDefault()
int getPort()
Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.