org.neo4j.kernel.ha
Class MasterServer
java.lang.Object
org.neo4j.com.Protocol
org.neo4j.com.Server<Master,Void>
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.
| Methods inherited from class org.neo4j.com.Server |
getConnectedSlaveChannels, getInternalProtocolVersion, getMaster, getPipeline, handleRequest, mapSlave, readContext, responseWritten, tryToFinishOffChannel, tryToFinishOffChannel, unmapSlave, writeFailureResponse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MasterServer
public MasterServer(Master realMaster,
int port,
String storeDir,
int maxConcurrentTransactions,
int oldChannelThreshold,
TxChecksumVerifier txVerifier)
getRequestContext
protected RequestType<Master> getRequestContext(byte id)
- Specified by:
getRequestContext in class Server<Master,Void>
finishOffChannel
protected void finishOffChannel(org.jboss.netty.channel.Channel channel,
SlaveContext context)
- Specified by:
finishOffChannel in class Server<Master,Void>
shutdown
public void shutdown()
- Overrides:
shutdown in class Server<Master,Void>
shouldLogFailureToFinishOffChannel
protected boolean shouldLogFailureToFinishOffChannel(Throwable failure)
- Overrides:
shouldLogFailureToFinishOffChannel in class Server<Master,Void>
getSlaveInformation
public Map<Integer,Collection<SlaveContext>> getSlaveInformation()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.