public static class ConnectionTracker.ConnectionEntry extends java.lang.Object implements java.lang.Comparable<ConnectionTracker.ConnectionEntry>, Immutable
| Constructor and Description |
|---|
ConnectionTracker.ConnectionEntry(java.lang.String mode,
java.lang.String url,
java.lang.Object connectionObject)
Create a new ConnectionEntry without a stack trace.
|
ConnectionTracker.ConnectionEntry(java.lang.String mode,
java.lang.String url,
java.lang.Object connectionObject,
java.lang.Throwable throwup)
Create a new ConnectionEntry.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ConnectionTracker.ConnectionEntry nother) |
int |
hashCode() |
void |
printTo(java.io.PrintWriter writer)
Prints the entry in text format to the given writer.
|
void |
writeTo(HtmlBuilder builder)
Writes the entry in HTML format to the given builder.
|
public ConnectionTracker.ConnectionEntry(java.lang.String mode,
java.lang.String url,
java.lang.Object connectionObject)
Equivalent to ConnectionEntry(mode, url, connectionObject, null).
mode - file access or similar mode - can be anything, but usually read, write, or random.url - URL accessed, if applicable. Does not have to be a URL if there is a more appropriate locator stringconnectionObject - object trackedpublic ConnectionTracker.ConnectionEntry(java.lang.String mode,
java.lang.String url,
java.lang.Object connectionObject,
java.lang.Throwable throwup)
mode - file access or similar mode - can be anything, but usually read, write, or random.url - URL accessed, if applicable. Does not have to be a URL if there is a more appropriate locator stringconnectionObject - object trackedthrowup - optional Throwable used to reconstruct a stack tracepublic void printTo(java.io.PrintWriter writer)
writer - writer to print topublic void writeTo(HtmlBuilder builder) throws java.io.IOException
builder - HtmlBuilder to write tojava.io.IOException - if something happens at a lower levelpublic int compareTo(ConnectionTracker.ConnectionEntry nother)
compareTo in interface java.lang.Comparable<ConnectionTracker.ConnectionEntry>public int hashCode()
hashCode in class java.lang.Object