|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.sapi.ChannelTree.Node
public static final class ChannelTree.Node
Represents a piece of a channel name. Each node has several properties which define its role in a hierarchy.
For example, the channel "/Server/Source/directory/channel" would produce the following nodes:
ChannelTree.SERVER
ChannelTree.SOURCE ChannelTree.FOLDER ChannelTree.CHANNEL
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Performs a lexicographical comparison of the full names of this and the argument, which must be of type node. |
boolean |
equals(Object o)
Compares the full names of this and the argument (of type node) for equality. |
List |
getChildren()
Returns a List of the children of this node. |
Map |
getChildrenMap()
Returns a Map of the children of this node. |
int |
getDepth()
Returns the depth of the node. |
double |
getDuration()
Returns the difference between the timestamp of the newest data and the timestamp of the oldest data in this channel. |
String |
getFullName()
Returns the fully qualified name of this node. |
String |
getMime()
Returns the MIME type of this channel node. |
String |
getName()
Returns the name of this node, which will not contain slashes. |
ChannelTree.Node |
getParent()
Returns the parent of this node, or null. |
int |
getSize()
Returns the size in bytes of a newest request on this channel. |
double |
getStart()
Returns the start time of the oldest data in this channel. |
ChannelTree.NodeTypeEnum |
getType()
Returns the type of this node. |
String |
toString()
The returned string the node's name and type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ChannelTree.Node getParent()
public List getChildren()
List of the children of this node.
If there are no children, the list will be empty.
public Map getChildrenMap()
Map of the children of this node.
If there are no children, the map will be empty.
public ChannelTree.NodeTypeEnum getType()
ChannelTree.SERVER,
ChannelTree.SOURCE,
ChannelTree.PLUGIN,
ChannelTree.SINK,
ChannelTree.FOLDER,
ChannelTree.CHANNELpublic int getDepth()
getParent() which may be made
before returning null.
For example, if node.getParent().getParent()
does not return
null, but node.getParent().getParent().getParent()
does, than the depth is 2.
public String getName()
public String getFullName()
public int compareTo(Object o)
compareTo in interface ComparableClassCastException - If the argument is not a
ChannelTree.Node.
NullPointerException - if o is null.String.compareTo(Object)public boolean equals(Object o)
equals in class ObjectClassCastException - If the argument is not a
ChannelTree.Node.String.equals(Object),
compareTo(Object)public String toString()
toString in class Objectpublic String getMime()
Sink.RequestRegistration()),
it contains the MIME type of a data request made of this channel.
Otherwise returns null.
Sink.RequestRegistration()public int getSize()
Sink.RequestRegistration()),
it contains the MIME type of a data request made of this channel.
Otherwise returns null.
Sink.RequestRegistration()public double getStart()
Sink.RequestRegistration()),
it contains the MIME type of a data request made of this channel.
Otherwise returns null.
Sink.RequestRegistration(),
ChannelMap.GetTimeStart(int)public double getDuration()
Sink.RequestRegistration()),
it contains the MIME type of a data request made of this channel.
Otherwise returns null.
Sink.RequestRegistration(),
ChannelMap.GetTimeDuration(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||