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

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

public class RemoteFileNode
extends java.lang.Object
implements StorageOrFileNode

The node representing a file at a remote location.

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

Constructor Summary
RemoteFileNode(StorageOrFileNode parent, GridFile file)
           
 
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.
 GridFile getFile()
           
 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

RemoteFileNode

public RemoteFileNode(StorageOrFileNode parent,
                      GridFile file)
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

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

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.

getFile

public GridFile getFile()