org.rhq.enterprise.server.plugins.drift.mongodb.entities
Class MongoDBFile

java.lang.Object
  extended by org.rhq.enterprise.server.plugins.drift.mongodb.entities.MongoDBFile
All Implemented Interfaces:
Serializable, DriftFile

@Embedded
public class MongoDBFile
extends Object
implements Serializable, DriftFile

Note that this class might go away. I am not certain that it is needed. Files are stored in fs.files collection when using the GridFS API as we are.

See Also:
Serialized Form

Constructor Summary
MongoDBFile()
           
MongoDBFile(DriftFile driftFile)
           
MongoDBFile(String hash)
           
 
Method Summary
 boolean equals(Object o)
           
 Long getCtime()
           
 Long getDataSize()
           
 String getHashId()
           
 DriftFileStatus getStatus()
           
 int hashCode()
           
 void setDataSize(Long size)
           
 void setHashId(String hashId)
           
 void setStatus(DriftFileStatus status)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoDBFile

public MongoDBFile()

MongoDBFile

public MongoDBFile(String hash)

MongoDBFile

public MongoDBFile(DriftFile driftFile)
Method Detail

getHashId

public String getHashId()
Specified by:
getHashId in interface DriftFile

setHashId

public void setHashId(String hashId)
Specified by:
setHashId in interface DriftFile

getCtime

public Long getCtime()
Specified by:
getCtime in interface DriftFile

getDataSize

public Long getDataSize()
Specified by:
getDataSize in interface DriftFile

setDataSize

public void setDataSize(Long size)
Specified by:
setDataSize in interface DriftFile

getStatus

public DriftFileStatus getStatus()
Specified by:
getStatus in interface DriftFile

setStatus

public void setStatus(DriftFileStatus status)
Specified by:
setStatus in interface DriftFile

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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