org.neo4j.com
Class Protocol

java.lang.Object
  extended by org.neo4j.com.Protocol
Direct Known Subclasses:
Server

public abstract class Protocol
extends Object


Nested Class Summary
static class Protocol.FileStreamsDeserializer
           
 
Field Summary
static int DEFAULT_FRAME_LENGTH
           
static Serializer EMPTY_SERIALIZER
           
static Deserializer<Integer> INTEGER_DESERIALIZER
           
static ObjectSerializer<Integer> INTEGER_SERIALIZER
           
static ObjectSerializer<Long> LONG_SERIALIZER
           
static int MEGA
           
static int PORT
           
static Deserializer<Void> VOID_DESERIALIZER
           
static ObjectSerializer<Void> VOID_SERIALIZER
           
 
Constructor Summary
Protocol()
           
 
Method Summary
static void addLengthFieldPipes(org.jboss.netty.channel.ChannelPipeline pipeline, int frameLength)
           
static boolean readBoolean(org.jboss.netty.buffer.ChannelBuffer buffer)
           
static String readString(org.jboss.netty.buffer.ChannelBuffer buffer)
           
static String readString(org.jboss.netty.buffer.ChannelBuffer buffer, int length)
           
static void writeChars(org.jboss.netty.buffer.ChannelBuffer buffer, char[] chars)
           
static void writeString(org.jboss.netty.buffer.ChannelBuffer buffer, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static final int PORT
See Also:
Constant Field Values

MEGA

public static final int MEGA
See Also:
Constant Field Values

DEFAULT_FRAME_LENGTH

public static final int DEFAULT_FRAME_LENGTH
See Also:
Constant Field Values

INTEGER_SERIALIZER

public static final ObjectSerializer<Integer> INTEGER_SERIALIZER

LONG_SERIALIZER

public static final ObjectSerializer<Long> LONG_SERIALIZER

VOID_SERIALIZER

public static final ObjectSerializer<Void> VOID_SERIALIZER

INTEGER_DESERIALIZER

public static final Deserializer<Integer> INTEGER_DESERIALIZER

VOID_DESERIALIZER

public static final Deserializer<Void> VOID_DESERIALIZER

EMPTY_SERIALIZER

public static final Serializer EMPTY_SERIALIZER
Constructor Detail

Protocol

public Protocol()
Method Detail

addLengthFieldPipes

public static void addLengthFieldPipes(org.jboss.netty.channel.ChannelPipeline pipeline,
                                       int frameLength)

writeString

public static void writeString(org.jboss.netty.buffer.ChannelBuffer buffer,
                               String name)

writeChars

public static void writeChars(org.jboss.netty.buffer.ChannelBuffer buffer,
                              char[] chars)

readString

public static String readString(org.jboss.netty.buffer.ChannelBuffer buffer)

readBoolean

public static boolean readBoolean(org.jboss.netty.buffer.ChannelBuffer buffer)

readString

public static String readString(org.jboss.netty.buffer.ChannelBuffer buffer,
                                int length)


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.