org.jenkinsci.plugins.periodicbackup
Class BackupObject

java.lang.Object
  extended by org.jenkinsci.plugins.periodicbackup.BackupObject
All Implemented Interfaces:
java.lang.Comparable

public class BackupObject
extends java.lang.Object
implements java.lang.Comparable


Field Summary
static java.lang.String EXTENSION
           
static java.lang.String FILE_TIMESTAMP_PATTERN
           
 
Constructor Summary
BackupObject(FileManager fileManager, Storage storage, Location location, java.util.Date timestamp)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getAsString()
           
 java.lang.String getDisplayName()
           
 FileManager getFileManager()
           
static com.google.common.base.Function<java.io.File,BackupObject> getFromFile()
           
static com.google.common.base.Function<java.lang.String,BackupObject> getFromString()
           
 Location getLocation()
           
 Storage getStorage()
           
 java.util.Date getTimestamp()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENSION

public static final java.lang.String EXTENSION
See Also:
Constant Field Values

FILE_TIMESTAMP_PATTERN

public static final java.lang.String FILE_TIMESTAMP_PATTERN
See Also:
Constant Field Values
Constructor Detail

BackupObject

public BackupObject(FileManager fileManager,
                    Storage storage,
                    Location location,
                    java.util.Date timestamp)
Method Detail

getFileManager

public FileManager getFileManager()

getStorage

public Storage getStorage()

getLocation

public Location getLocation()

getFromFile

public static com.google.common.base.Function<java.io.File,BackupObject> getFromFile()
Returns:
transformation function to convert BackupObject file into BackupObject

getFromString

public static com.google.common.base.Function<java.lang.String,BackupObject> getFromString()
Returns:
transformation function to convert String into BackupObject

getTimestamp

public java.util.Date getTimestamp()

getDisplayName

public java.lang.String getDisplayName()

getAsString

public java.lang.String getAsString()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2004-2013. All Rights Reserved.