org.rhq.common.drift
Class FileEntry

java.lang.Object
  extended by org.rhq.common.drift.FileEntry
All Implemented Interfaces:
Serializable, Comparable<FileEntry>

public class FileEntry
extends Object
implements Serializable, Comparable<FileEntry>

See Also:
Serialized Form

Constructor Summary
FileEntry(String newSHA, String oldSHA, String file, String type, Long lastModified, Long size)
           
 
Method Summary
static FileEntry addedFileEntry(String file, String sha, Long lastModified, Long size)
           
static FileEntry changedFileEntry(String file, String oldSHA, String newSHA, Long lastModified, Long size)
           
 int compareTo(FileEntry o)
           
 String getFile()
           
 Long getLastModified()
           
 String getNewSHA()
           
 String getOldSHA()
           
 Long getSize()
           
 org.rhq.core.domain.drift.DriftCategory getType()
           
static FileEntry removedFileEntry(String file, String sha)
           
 void setLastModified(Long lastModified)
           
 void setSize(Long size)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileEntry

public FileEntry(String newSHA,
                 String oldSHA,
                 String file,
                 String type,
                 Long lastModified,
                 Long size)
Method Detail

removedFileEntry

public static FileEntry removedFileEntry(String file,
                                         String sha)

addedFileEntry

public static FileEntry addedFileEntry(String file,
                                       String sha,
                                       Long lastModified,
                                       Long size)

changedFileEntry

public static FileEntry changedFileEntry(String file,
                                         String oldSHA,
                                         String newSHA,
                                         Long lastModified,
                                         Long size)

getFile

public String getFile()

getOldSHA

public String getOldSHA()

getNewSHA

public String getNewSHA()

getType

public org.rhq.core.domain.drift.DriftCategory getType()

getLastModified

public Long getLastModified()

getSize

public Long getSize()

setLastModified

public void setLastModified(Long lastModified)

setSize

public void setSize(Long size)

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(FileEntry o)
Specified by:
compareTo in interface Comparable<FileEntry>


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.