public class ExecDumpClient extends Object
| Constructor and Description |
|---|
ExecDumpClient()
New instance with the defaults
dump==true,
reset==false, retryCount==0 and
retryDelay=1000. |
| Modifier and Type | Method and Description |
|---|---|
ExecFileLoader |
dump(InetAddress address,
int port)
Requests a dump from the given end-point.
|
ExecFileLoader |
dump(String address,
int port)
Requests a dump from the given end-point.
|
protected void |
onConnecting(InetAddress address,
int port)
This method can be overwritten to get an event just before a connection
is made.
|
protected void |
onConnectionFailure(IOException exception)
This method can be overwritten to get an event for connection failures
when another retry will be attempted.
|
void |
setDump(boolean dump)
Specifies whether a dump should be requested
|
void |
setReset(boolean reset)
Specifies whether execution data should be reset.
|
void |
setRetryCount(int retryCount)
Sets the number of retry attempts to connect to the target socket.
|
void |
setRetryDelay(long retryDelay)
Sets the delay time before between connection attempts.
|
public ExecDumpClient()
dump==true,
reset==false, retryCount==0 and
retryDelay=1000.public void setDump(boolean dump)
dump - true if a dump should be requestedpublic void setReset(boolean reset)
reset - true if execution data should be resetpublic void setRetryCount(int retryCount)
retryCount - number of retriespublic void setRetryDelay(long retryDelay)
retryDelay - delay in millisecondspublic ExecFileLoader dump(String address, int port) throws IOException
address - IP-Address to connect toport - port to connect toIOException - in case the dump can not be requestedpublic ExecFileLoader dump(InetAddress address, int port) throws IOException
address - host name or IP-Address to connect toport - port to connect toIOException - in case the dump can not be requestedprotected void onConnecting(InetAddress address, int port)
address - target addressport - target portprotected void onConnectionFailure(IOException exception)
exception - connection errorCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.