org.neo4j.kernel.ha.comm
Enum RequestType

java.lang.Object
  extended by java.lang.Enum<RequestType>
      extended by org.neo4j.kernel.ha.comm.RequestType
All Implemented Interfaces:
Serializable, Comparable<RequestType>

public enum RequestType
extends Enum<RequestType>


Enum Constant Summary
ACQUIRE_NODE_READ_LOCK
           
ACQUIRE_NODE_WRITE_LOCK
           
ACQUIRE_RELATIONSHIP_READ_LOCK
           
ACQUIRE_RELATIONSHIP_WRITE_LOCK
           
ALLOCATE_ARRAY_BLOCK_IDS
           
ALLOCATE_NEOSTORE_BLOCK_IDS
           
ALLOCATE_NODE_IDS
           
ALLOCATE_PROPERTY_IDS
           
ALLOCATE_PROPERTY_INDEX_BLOCK_IDS
           
ALLOCATE_PROPERTY_INDEX_IDS
           
ALLOCATE_RELATIONSHIP_IDS
           
ALLOCATE_RELATIONSHIP_TYPE_BLOCK_IDS
           
ALLOCATE_RELATIONSHIP_TYPE_IDS
           
ALLOCATE_STRING_BLOCK_IDS
           
COMMIT
           
CREATE_RELATIONSHIP_TYPE
           
FINISH
           
GET_MASTER_ID_FOR_TX
           
PULL_UPDATES
           
 
Method Summary
static RequestType allocateIds(IdType type)
           
static RequestType get(int code)
           
 Response<DataWriter> invoke(Master master, SlaveContext context)
           
 Object readRequest(org.jboss.netty.buffer.ChannelBuffer buffer)
           
 Object readResponse(org.jboss.netty.buffer.ChannelBuffer buffer)
           
static RequestType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RequestType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOCATE_NODE_IDS

public static final RequestType ALLOCATE_NODE_IDS

ALLOCATE_RELATIONSHIP_IDS

public static final RequestType ALLOCATE_RELATIONSHIP_IDS

ALLOCATE_PROPERTY_IDS

public static final RequestType ALLOCATE_PROPERTY_IDS

ALLOCATE_STRING_BLOCK_IDS

public static final RequestType ALLOCATE_STRING_BLOCK_IDS

ALLOCATE_ARRAY_BLOCK_IDS

public static final RequestType ALLOCATE_ARRAY_BLOCK_IDS

ALLOCATE_PROPERTY_INDEX_IDS

public static final RequestType ALLOCATE_PROPERTY_INDEX_IDS

ALLOCATE_PROPERTY_INDEX_BLOCK_IDS

public static final RequestType ALLOCATE_PROPERTY_INDEX_BLOCK_IDS

ALLOCATE_RELATIONSHIP_TYPE_IDS

public static final RequestType ALLOCATE_RELATIONSHIP_TYPE_IDS

ALLOCATE_RELATIONSHIP_TYPE_BLOCK_IDS

public static final RequestType ALLOCATE_RELATIONSHIP_TYPE_BLOCK_IDS

ALLOCATE_NEOSTORE_BLOCK_IDS

public static final RequestType ALLOCATE_NEOSTORE_BLOCK_IDS

CREATE_RELATIONSHIP_TYPE

public static final RequestType CREATE_RELATIONSHIP_TYPE

ACQUIRE_NODE_WRITE_LOCK

public static final RequestType ACQUIRE_NODE_WRITE_LOCK

ACQUIRE_NODE_READ_LOCK

public static final RequestType ACQUIRE_NODE_READ_LOCK

ACQUIRE_RELATIONSHIP_WRITE_LOCK

public static final RequestType ACQUIRE_RELATIONSHIP_WRITE_LOCK

ACQUIRE_RELATIONSHIP_READ_LOCK

public static final RequestType ACQUIRE_RELATIONSHIP_READ_LOCK

COMMIT

public static final RequestType COMMIT

PULL_UPDATES

public static final RequestType PULL_UPDATES

FINISH

public static final RequestType FINISH

GET_MASTER_ID_FOR_TX

public static final RequestType GET_MASTER_ID_FOR_TX
Method Detail

values

public static RequestType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RequestType c : RequestType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RequestType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

readRequest

public final Object readRequest(org.jboss.netty.buffer.ChannelBuffer buffer)

readResponse

public Object readResponse(org.jboss.netty.buffer.ChannelBuffer buffer)

invoke

public Response<DataWriter> invoke(Master master,
                                   SlaveContext context)

get

public static RequestType get(int code)

allocateIds

public static RequestType allocateIds(IdType type)


Copyright © 2010 The Neo4j Graph Database Project. All Rights Reserved.