org.gudy.azureus2.pluginsimpl.local.ddb
Class DDBaseValueImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ddb.DDBaseValueImpl
All Implemented Interfaces:
DistributedDatabaseValue

public class DDBaseValueImpl
extends java.lang.Object
implements DistributedDatabaseValue

Author:
parg

Field Summary
protected static int MAX_VALUE_SIZE
           
 
Constructor Summary
protected DDBaseValueImpl(DDBaseContactImpl _contact, byte[] _value_bytes, long _creation_time, long _version)
           
protected DDBaseValueImpl(DDBaseContactImpl _contact, java.lang.Object _value, long _creation_time, long _version)
           
 
Method Summary
protected  byte[] getBytes()
           
 DistributedDatabaseContact getContact()
           
 long getCreationTime()
           
 java.lang.Object getValue(java.lang.Class c)
           
 long getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_VALUE_SIZE

protected static int MAX_VALUE_SIZE
Constructor Detail

DDBaseValueImpl

protected DDBaseValueImpl(DDBaseContactImpl _contact,
                          java.lang.Object _value,
                          long _creation_time,
                          long _version)
                   throws DistributedDatabaseException
Throws:
DistributedDatabaseException

DDBaseValueImpl

protected DDBaseValueImpl(DDBaseContactImpl _contact,
                          byte[] _value_bytes,
                          long _creation_time,
                          long _version)
Method Detail

getValue

public java.lang.Object getValue(java.lang.Class c)
                          throws DistributedDatabaseException
Specified by:
getValue in interface DistributedDatabaseValue
Throws:
DistributedDatabaseException

getBytes

protected byte[] getBytes()

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface DistributedDatabaseValue

getVersion

public long getVersion()
Specified by:
getVersion in interface DistributedDatabaseValue

getContact

public DistributedDatabaseContact getContact()
Specified by:
getContact in interface DistributedDatabaseValue