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 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
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, String storeDir)
           
 
Method Summary
protected  void finishOffConnection(org.jboss.netty.channel.Channel channel, SlaveContext context)
           
protected  RequestType<Master> getRequestContext(byte id)
           
 Map<Integer,Collection<SlaveContext>> getSlaveInformation()
           
protected  void responseWritten(RequestType<Master> type, org.jboss.netty.channel.Channel channel, SlaveContext context)
           
 
Methods inherited from class org.neo4j.com.Server
getConnectedSlaveChannels, getMaster, getPipeline, handleRequest, mapSlave, readContext, shutdown, unmapSlave
 
Methods inherited from class org.neo4j.com.Protocol
addLengthFieldPipes, 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,
                    String storeDir)
Method Detail

getRequestContext

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

finishOffConnection

protected void finishOffConnection(org.jboss.netty.channel.Channel channel,
                                   SlaveContext context)
Specified by:
finishOffConnection in class Server<Master,Void>

responseWritten

protected void responseWritten(RequestType<Master> type,
                               org.jboss.netty.channel.Channel channel,
                               SlaveContext context)
Specified by:
responseWritten in class Server<Master,Void>

getSlaveInformation

public Map<Integer,Collection<SlaveContext>> getSlaveInformation()


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