jetbrains.buildServer.agentServer
Class RemoteFileStructure

java.lang.Object
  extended by jetbrains.buildServer.agentServer.RemoteFileStructure

public class RemoteFileStructure
extends java.lang.Object

Represents the remote file structure. Node information includes the file name, relative path and file size.

Files and directories can be distinguished via getSize() method: by convention, the size of directory is -1, while the file size is always non-negative.

Since:
6.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Field Summary
static long DIRECTORY_SIZE
           
 
Constructor Summary
RemoteFileStructure(java.lang.String fileName, java.lang.String relativeName, long size)
           
RemoteFileStructure(java.lang.String fileName, java.lang.String relativeName, long size, java.util.List<RemoteFileStructure> children)
           
 
Method Summary
 java.util.List<RemoteFileStructure> getChildren()
           
 java.lang.String getFileName()
           
 java.lang.String getRelativeName()
           
 long getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTORY_SIZE

public static final long DIRECTORY_SIZE
See Also:
Constant Field Values
Constructor Detail

RemoteFileStructure

public RemoteFileStructure(java.lang.String fileName,
                           java.lang.String relativeName,
                           long size,
                           java.util.List<RemoteFileStructure> children)

RemoteFileStructure

public RemoteFileStructure(java.lang.String fileName,
                           java.lang.String relativeName,
                           long size)
Method Detail

getFileName

public java.lang.String getFileName()

getRelativeName

public java.lang.String getRelativeName()

getSize

public long getSize()

getChildren

public java.util.List<RemoteFileStructure> getChildren()