@ThreadRestricted(value="single writer, readers touch") public class TraceNodeW extends Object implements TraceNode
| Modifier and Type | Class and Description |
|---|---|
static interface |
TraceNodeW.Runner
A routine that runs in the context of a trace node.
|
static class |
TraceNodeW.Table
The relational store of nodes that (in part) backs a network trace.
|
| Constructor and Description |
|---|
TraceNodeW(IDPair registrant)
Creates a TraceNodeW with all variables at default values.
|
TraceNodeW(IDPair registrant,
String area,
String countryCode,
String geohandle,
String otherProperties)
Creates a TraceNodeW.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
attachTrustEdge(int trustLevel0)
Attaches a trust edge to this node.
|
(package private) void |
detachTrustEdge(int trustLevel0)
Detaches a trust edge from this node.
|
String |
getArea()
The registrant's local area of residence, or null if unspecified.
|
String |
getCountryCode()
The registrant's country of residence in ISO_3166-1 alpha-2
form, or null if unspecified.
|
String |
getGeohandle()
The normalized, geo-locatable address string for the registrant's primary
residential address.
|
String |
getOtherProperties()
Other registration properties.
|
int |
primaryTrustEdgeCount()
The number of primary trust edges extending to this node.
|
IDPair |
registrant()
The registrant.
|
String |
toString()
Returns the registrant's username.
|
(package private) void |
toXML(Set<String> divisions,
Appendable a)
Serializes this node in XML format.
|
int |
trustLevel()
Calculates the trust level of this node.
|
(package private) void |
write(TraceNodeW.Table table)
Writes this node to the table if it has unwritten changes.
|
TraceNodeW(IDPair registrant)
final void attachTrustEdge(int trustLevel0)
trustLevel0 - trust level of source node,
or Integer.MAX_VALUE for infinitydetachTrustEdge(int),
trustLevel()final void detachTrustEdge(int trustLevel0)
trustLevel0 - trust level of source nodeattachTrustEdge(int)void toXML(Set<String> divisions, Appendable a) throws IOException
BadInputExceptionIOExceptionfinal void write(TraceNodeW.Table table) throws SQLException
SQLExceptionpublic final String getArea()
TraceNodegetArea in interface TraceNodepublic final String getCountryCode()
TraceNodegetCountryCode in interface TraceNodepublic final String getGeohandle()
TraceNodegetGeohandle in interface TraceNodepublic final String getOtherProperties()
TraceNodevotrace.js script.getOtherProperties in interface TraceNodevotrace.jspublic final int primaryTrustEdgeCount()
TraceNodeprimaryTrustEdgeCount in interface TraceNodepublic IDPair registrant()
TraceNoderegistrant in interface TraceNodepublic final int trustLevel()
TraceNodetrustLevel in interface TraceNodeattachTrustEdge(int)