saker.rmi Documentation TaskDoc JavaDoc Packages
public final class RMIStatistics
Holds RMI statistics collected during the lifetime of an RMI connection.

The class holds various statistics about the RMI method invocations that occurred during an RMI connection. The collection of these statistics are disabled by default and can be turned on by using RMIOptions.collectStatistics(boolean).

saker.rmi 0.8.2
Nested types
public static final class
Encloses statistic information about an RMI method call.
Methods
public void
Dumps a summary of the statistics to the specified output stream.
public void
Dumps a summary of the statistics to the specified output stream.
public void
Dumps a summary of the statistics to the specified output stream.
public void
Dumps a summary of the statistics to the specified output.
public Iterable<extends MethodStatistics>
Gets the collected method statistics.
public Iterable<extends MethodStatistics>
Gets and clears the method statistics.
public void dumpSummary(PrintStream out, TimeUnit timeunit) throws NullPointerException
Dumps a summary of the statistics to the specified output stream.
outThe output.
timeunitA TimeUnit that specifies the display metrics for the time values. May be null.
NullPointerExceptionIf the argument is null.
public void dumpSummary(PrintWriter out, TimeUnit timeunit) throws NullPointerException
Dumps a summary of the statistics to the specified output stream.
outThe output.
timeunitA TimeUnit that specifies the display metrics for the time values. May be null.
NullPointerExceptionIf the argument is null.
public void dumpSummary(Appendable out, TimeUnit timeunit) throws NullPointerException, IOException
Dumps a summary of the statistics to the specified output stream.
outThe output.
timeunitA TimeUnit that specifies the display metrics for the time values. May be null.
NullPointerExceptionIf the argument is null.
IOExceptionIn case of I/O error.
public void dumpSummary(StringBuilder out, TimeUnit timeunit) throws NullPointerException
Dumps a summary of the statistics to the specified output.
outThe output.
timeunitA TimeUnit that specifies the display metrics for the time values. May be null.
NullPointerExceptionIf the argument is null.
Gets the collected method statistics.
A method statistics iterable.
Gets and clears the method statistics.

Calling this method will clear the method related statistics while return an Iterable that iterates over the recorded statistics.

A method statistics iterable.