@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
BadInputException
IOException
final void write(TraceNodeW.Table table) throws SQLException
SQLException
public final String getArea()
TraceNode
getArea
in interface TraceNode
public final String getCountryCode()
TraceNode
getCountryCode
in interface TraceNode
public final String getGeohandle()
TraceNode
getGeohandle
in interface TraceNode
public final String getOtherProperties()
TraceNode
votrace.js
script.getOtherProperties
in interface TraceNode
votrace.js
public final int primaryTrustEdgeCount()
TraceNode
primaryTrustEdgeCount
in interface TraceNode
public IDPair registrant()
TraceNode
registrant
in interface TraceNode
public final int trustLevel()
TraceNode
trustLevel
in interface TraceNode
attachTrustEdge(int)