public class LoggedLocation extends Object implements DeepCompare
LoggedLocation is a representation of a point in an hierarchical
network, represented as a series of membership names, broadest first.
For example, if your network has hosts grouped into racks, then
in onecluster you might have a node node1 on rack rack1. This
would be represented with a ArrayList of two layers, with two String
s being "rack1" and "node1".
The details of this class are set up to meet the requirements of the Jackson
JSON parser/generator.
All of the public methods are simply accessors for the instance variables we
want to write out in the JSON files.| Constructor and Description |
|---|
LoggedLocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
deepCompare(DeepCompare comparand,
TreePath loc) |
List<NodeName> |
getLayers() |
void |
setUnknownAttribute(String attributeName,
Object ignored) |
public void deepCompare(DeepCompare comparand, TreePath loc) throws DeepInequalityException
deepCompare in interface DeepComparecomparand - the other comparand that's being compared to meloc - the path that got to me. In the root, myLocation is null. To
process the scalar foo field of the root we will make a
recursive call with a TreePath whose fieldName is
"bar" and whose index is -1 and whose parent is null. To process the plural bar field
of the root we will make a recursive call with a TreePath
whose fieldName is "foo" and whose index is -1 and
whose parent is also null.DeepInequalityExceptionCopyright © 2018 CERN. All Rights Reserved.