public class ExecDumpClient
extends java.lang.Object
| Constructor | Description |
|---|---|
ExecDumpClient() |
New instance with the defaults
dump==true,
reset==false, retryCount==0 and
retryDelay=1000. |
| Modifier and Type | Method | Description |
|---|---|---|
ExecFileLoader |
dump(java.lang.String address,
int port) |
Requests a dump from the given end-point.
|
ExecFileLoader |
dump(java.net.InetAddress address,
int port) |
Requests a dump from the given end-point.
|
protected void |
onConnecting(java.net.InetAddress address,
int port) |
This method can be overwritten to get an event just before a connection
is made.
|
protected void |
onConnectionFailure(java.io.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(java.lang.String address, int port) throws java.io.IOException
address - IP-Address to connect toport - port to connect tojava.io.IOException - in case the dump can not be requestedpublic ExecFileLoader dump(java.net.InetAddress address, int port) throws java.io.IOException
address - host name or IP-Address to connect toport - port to connect tojava.io.IOException - in case the dump can not be requestedprotected void onConnecting(java.net.InetAddress address,
int port)
address - target addressport - target portprotected void onConnectionFailure(java.io.IOException exception)
exception - connection errorCopyright © 2018. All rights reserved.