com.intel.gpe.gridbeans.plugins.controls.remotefs
Class StorageNode

java.lang.Object
  extended by com.intel.gpe.gridbeans.plugins.controls.remotefs.StorageNode
All Implemented Interfaces:
Node, StorageOrFileNode

public class StorageNode
extends java.lang.Object
implements StorageOrFileNode

The node representing a remote storage.

Version:
$Id: StorageNode.java,v 1.1 2005/12/07 11:37:56 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
StorageNode(TargetSystemNode parent, StorageClient storage)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Node getChild(int i)
          Get the child specified with the index.
 int getChildCount()
          Get the number of children nodes.
 StorageClient getStorage()
          Get the storage client associated either with the storage node or the file location.
 boolean isLeaf()
          Check if the node is a leaf.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StorageNode

public StorageNode(TargetSystemNode parent,
                   StorageClient storage)
Method Detail

getChildCount

public int getChildCount()
Description copied from interface: Node
Get the number of children nodes.

Specified by:
getChildCount in interface Node
Returns:
The number of children

getChild

public Node getChild(int i)
Description copied from interface: Node
Get the child specified with the index.

Specified by:
getChild in interface Node
Parameters:
i - The index of the child to get
Returns:
The child node

getStorage

public StorageClient getStorage()
Description copied from interface: StorageOrFileNode
Get the storage client associated either with the storage node or the file location.

Specified by:
getStorage in interface StorageOrFileNode
Returns:
The storage.

isLeaf

public boolean isLeaf()
Description copied from interface: Node
Check if the node is a leaf.

Specified by:
isLeaf in interface Node
Returns:
true if the node if a leaf, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object