fr.dyade.aaa.util
Class Operation

java.lang.Object
  extended by fr.dyade.aaa.util.Operation
All Implemented Interfaces:
java.io.Serializable

public class Operation
extends java.lang.Object
implements java.io.Serializable

This class describes an operation in the transaction log.

See Also:
Serialized Form

Field Summary
static int COMMIT
           
static int CREATE
           
static int DELETE
           
 java.lang.String dirName
          Relative path of the object if any, null otherwise.
static int END
           
 int logidx
           
 int logptr
           
 java.lang.String name
          Name of the object
static int NOOP
           
static int SAVE
           
 int type
          Type of the operation.
 byte[] value
          Binary representation of the object (only for create and save operation).
 
Method Summary
static Operation alloc(int type, java.lang.String dirName, java.lang.String name)
           
static Operation alloc(int type, java.lang.String dirName, java.lang.String name, byte[] value)
           
 void free()
           
static void initPool(int LogThresholdOperation)
           
 java.lang.String toString()
          Returns a string representation for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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 java.lang.String dirName
Relative path of the object if any, null otherwise.


name

public java.lang.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
Method Detail

toString

public java.lang.String toString()
Returns a string representation for this object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.

initPool

public static void initPool(int LogThresholdOperation)

alloc

public static Operation alloc(int type,
                              java.lang.String dirName,
                              java.lang.String name)

alloc

public static Operation alloc(int type,
                              java.lang.String dirName,
                              java.lang.String name,
                              byte[] value)

free

public void free()


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.