|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jacoco.core.tools.ExecDumpClient
public class ExecDumpClient
A client for remote execution data dumps.
Constructor Summary | |
---|---|
ExecDumpClient()
New instance with the defaults dump==true ,
reset==false , retryCount==0 and
retryDelay=1000 . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecDumpClient()
dump==true
,
reset==false
, retryCount==0
and
retryDelay=1000
.
Method Detail |
---|
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 to
IOException
- 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 to
IOException
- 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 error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |