org.neo4j.kernel.ha
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.MasterServer
All Implemented Interfaces:
org.jboss.netty.channel.ChannelPipelineFactory

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.Protocol
org.neo4j.com.Protocol.FileStreamsDeserializer
 
Field Summary
 
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 realMaster, int port, org.neo4j.kernel.impl.util.StringLogger logger, int maxConcurrentTransactions, int oldChannelThreshold, org.neo4j.com.TxChecksumVerifier txVerifier)
           
 
Method Summary
protected  void finishOffChannel(org.jboss.netty.channel.Channel channel, org.neo4j.com.SlaveContext context)
           
protected  org.neo4j.com.RequestType<Master> getRequestContext(byte id)
           
 Map<Integer,Collection<org.neo4j.com.SlaveContext>> getSlaveInformation()
           
protected  boolean shouldLogFailureToFinishOffChannel(Throwable failure)
           
 void shutdown()
           
 
Methods inherited from class org.neo4j.com.Server
getConnectedSlaveChannels, getInternalProtocolVersion, getMaster, getPipeline, handleRequest, mapSlave, readContext, responseWritten, tryToFinishOffChannel, tryToFinishOffChannel, unmapSlave, writeFailureResponse
 
Methods inherited from class org.neo4j.com.Protocol
addLengthFieldPipes, readBoolean, readString, readString, writeChars, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterServer

public MasterServer(Master realMaster,
                    int port,
                    org.neo4j.kernel.impl.util.StringLogger logger,
                    int maxConcurrentTransactions,
                    int oldChannelThreshold,
                    org.neo4j.com.TxChecksumVerifier txVerifier)
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.SlaveContext context)
Specified by:
finishOffChannel in class org.neo4j.com.Server<Master,Void>

shutdown

public void shutdown()
Overrides:
shutdown 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.SlaveContext>> getSlaveInformation()


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