org.neo4j.kernel.ha.com.master
Class MasterServer

java.lang.Object
  extended by org.neo4j.com.Protocol
      extended by org.neo4j.com.Server<Master,Void>
          extended by org.neo4j.kernel.ha.com.master.MasterServer
All Implemented Interfaces:
org.jboss.netty.channel.ChannelPipelineFactory, org.neo4j.kernel.lifecycle.Lifecycle

public class MasterServer
extends org.neo4j.com.Server<Master,Void>

Sits on the master side, receiving serialized requests from slaves (via MasterClient). Delegates actual work to MasterImpl.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.neo4j.com.Server
org.neo4j.com.Server.Configuration
 
Nested classes/interfaces inherited from class org.neo4j.com.Protocol
org.neo4j.com.Protocol.FileStreamsDeserializer
 
Field Summary
static int FRAME_LENGTH
           
 
Fields inherited from class org.neo4j.com.Server
DEFAULT_BACKUP_PORT, DEFAULT_MAX_NUMBER_OF_CONCURRENT_TRANSACTIONS
 
Fields inherited from class org.neo4j.com.Protocol
DEFAULT_FRAME_LENGTH, EMPTY_SERIALIZER, INTEGER_DESERIALIZER, INTEGER_SERIALIZER, LONG_SERIALIZER, MEGA, PORT, VOID_DESERIALIZER, VOID_SERIALIZER
 
Constructor Summary
MasterServer(Master requestTarget, org.neo4j.kernel.logging.Logging logging, org.neo4j.com.Server.Configuration config, org.neo4j.com.TxChecksumVerifier txVerifier)
           
 
Method Summary
protected  void finishOffChannel(org.jboss.netty.channel.Channel channel, org.neo4j.com.RequestContext context)
           
protected  org.neo4j.com.RequestType<Master> getRequestContext(byte id)
           
 Map<Integer,Collection<org.neo4j.com.RequestContext>> getSlaveInformation()
           
protected  boolean shouldLogFailureToFinishOffChannel(Throwable failure)
           
 
Methods inherited from class org.neo4j.com.Server
getConnectedSlaveChannels, getInternalProtocolVersion, getPipeline, getRequestTarget, getSocketAddress, handleRequest, init, mapSlave, readContext, responseWritten, shutdown, start, stop, targetCaller, tryToFinishOffChannel, tryToFinishOffChannel, unmapSlave, writeFailureResponse
 
Methods inherited from class org.neo4j.com.Protocol
addLengthFieldPipes, assertChunkSizeIsWithinFrameSize, readBoolean, readString, readString, writeChars, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRAME_LENGTH

public static final int FRAME_LENGTH
See Also:
Constant Field Values
Constructor Detail

MasterServer

public MasterServer(Master requestTarget,
                    org.neo4j.kernel.logging.Logging logging,
                    org.neo4j.com.Server.Configuration config,
                    org.neo4j.com.TxChecksumVerifier txVerifier)
             throws IOException
Throws:
IOException
Method Detail

getRequestContext

protected org.neo4j.com.RequestType<Master> getRequestContext(byte id)
Specified by:
getRequestContext in class org.neo4j.com.Server<Master,Void>

finishOffChannel

protected void finishOffChannel(org.jboss.netty.channel.Channel channel,
                                org.neo4j.com.RequestContext context)
Specified by:
finishOffChannel in class org.neo4j.com.Server<Master,Void>

shouldLogFailureToFinishOffChannel

protected boolean shouldLogFailureToFinishOffChannel(Throwable failure)
Overrides:
shouldLogFailureToFinishOffChannel in class org.neo4j.com.Server<Master,Void>

getSlaveInformation

public Map<Integer,Collection<org.neo4j.com.RequestContext>> getSlaveInformation()


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