Package fr.dyade.aaa.util
Class Operation
- java.lang.Object
-
- fr.dyade.aaa.util.Operation
-
- All Implemented Interfaces:
Serializable
public class Operation extends Object implements Serializable
This class describes an operation in the transaction log.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMITstatic intCREATEstatic intDELETEStringdirNameRelative path of the object if any, null otherwise.static intENDintlogidxintlogptrStringnameName of the objectstatic intNOOPprivate static Poolpoolstatic intSAVEprivate static longserialVersionUIDdefine serialVersionUID for interoperabilityinttypeType of the operation.byte[]valueBinary representation of the object (only for create and save operation).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Operationalloc(int type, String dirName, String name)static Operationalloc(int type, String dirName, String name, byte[] value)voidfree()static voidinitPool(int LogThresholdOperation)StringtoString()Returns a string representation for this object.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
SAVE
public static final int SAVE
- See Also:
- Constant Field Values
-
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
-
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
-
NOOP
public static final int NOOP
- See Also:
- Constant Field Values
-
COMMIT
public static final int COMMIT
- See Also:
- Constant Field Values
-
END
public static final int END
- See Also:
- Constant Field Values
-
type
public int type
Type of the operation.
-
dirName
public String dirName
Relative path of the object if any, null otherwise.
-
name
public String name
Name of the object
-
value
public byte[] value
Binary representation of the object (only for create and save operation).
-
logidx
public int logidx
-
logptr
public int logptr
-
pool
private static Pool pool
-
-
Method Detail
-
toString
public String toString()
Returns a string representation for this object.
-
initPool
public static void initPool(int LogThresholdOperation)
-
free
public void free()
-
-