com.cloudera.api.model
Class ApiHdfsSnapshot

java.lang.Object
  extended by com.cloudera.api.model.ApiHdfsSnapshot

public class ApiHdfsSnapshot
extends Object

An HDFS snapshot descriptor.


Constructor Summary
ApiHdfsSnapshot()
           
ApiHdfsSnapshot(String snapshottedPath, String snapshotName, String snapshotPath)
           
ApiHdfsSnapshot(String snapshottedPath, String snapshotName, String snapshotPath, Date creationTime)
           
 
Method Summary
 boolean equals(Object o)
           
 Date getCreationTime()
          Snapshot creation time.
 String getPath()
          Snapshotted path.
 String getSnapshotName()
          Snapshot name.
 String getSnapshotPath()
          Read-only.
 int hashCode()
           
 void setCreationTime(Date creationTime)
           
 void setPath(String path)
           
 void setSnapshotName(String snapshotName)
           
 void setSnapshotPath(String snapshotPath)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiHdfsSnapshot

public ApiHdfsSnapshot()

ApiHdfsSnapshot

public ApiHdfsSnapshot(String snapshottedPath,
                       String snapshotName,
                       String snapshotPath)

ApiHdfsSnapshot

public ApiHdfsSnapshot(String snapshottedPath,
                       String snapshotName,
                       String snapshotPath,
                       Date creationTime)
Method Detail

getPath

public String getPath()
Snapshotted path.


setPath

public void setPath(String path)

getSnapshotName

public String getSnapshotName()
Snapshot name.


setSnapshotName

public void setSnapshotName(String snapshotName)

getSnapshotPath

public String getSnapshotPath()
Read-only. Fully qualified path for the snapshot version of "path".

For example, if a snapshot "s1" is present at "/a/.snapshot/s1, then the snapshot path corresponding to "s1" for path "/a/b" will be "/a/.snapshot/s1/b".


setSnapshotPath

public void setSnapshotPath(String snapshotPath)

getCreationTime

public Date getCreationTime()
Snapshot creation time.


setCreationTime

public void setCreationTime(Date creationTime)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.