org.hypergraphdb.peer.log
Class LogEntry
java.lang.Object
org.hypergraphdb.peer.log.LogEntry
- All Implemented Interfaces:
- java.lang.Comparable<LogEntry>
public class LogEntry
- extends java.lang.Object
- implements java.lang.Comparable<LogEntry>
- Author:
- ciprian.costa
Simple class that holds a log entry and its relations with the other peers.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogEntry
public LogEntry(java.lang.Object value,
HyperGraph logDb,
StorageService.Operation operation)
LogEntry
public LogEntry(java.lang.Object value,
HyperGraph logDb,
HGPersistentHandle handle,
StorageService.Operation operation)
LogEntry
public LogEntry(HGHandle handle,
HyperGraph logDb,
Timestamp timestamp)
getData
public Subgraph getData()
setData
public void setData(Subgraph data)
getLogEntryHandle
public HGPersistentHandle getLogEntryHandle()
setLogEntryHandle
public void setLogEntryHandle(HGPersistentHandle logEntryHandle)
setTimestamp
public void setTimestamp(Timestamp timestamp)
getTimestamp
public Timestamp getTimestamp()
setLastTimestamp
public void setLastTimestamp(java.lang.Object targetId,
Timestamp timestamp)
getLastTimestamp
public Timestamp getLastTimestamp(java.lang.Object targetId)
getOperation
public StorageService.Operation getOperation()
setOperation
public void setOperation(StorageService.Operation operation)
getHandle
public HGPersistentHandle getHandle()
setHandle
public void setHandle(HGPersistentHandle handle)
compareTo
public int compareTo(LogEntry value)
- Specified by:
compareTo in interface java.lang.Comparable<LogEntry>