org.headlessintrace.client.DefaultConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of headlessInTraceClient Show documentation
Show all versions of headlessInTraceClient Show documentation
A headless java API that collects events from other JVMs. Events=method invocations. Initial code taken from http://mchr3k.github.io/org.intrace/. Intended for building diagnostic applications.
package org.headlessintrace.client;
public class DefaultConfig implements Config {
@Override
public int getFixedMessageCount() {
return 2000;
}
/**
* If the network doesn't respond in 5 seconds, there is a problem.
* Possible problems:
* The intrace agent isn't listening on the specified port
* The specified port is blocked by a firewall
* The host name is wrong
* The port number is wrong.
*/
@Override
public long getConnectWaitMs() {
return 60*1000;//60 seconds...enough to debug past the connection timeout
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy