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 org.neo4j.com.Server<Master,Void>
Sits on the master side, receiving serialized requests from slaves (via
MasterClient). Delegates actual work to MasterImpl.
| Nested classes/interfaces inherited from class org.neo4j.com.Protocol |
org.neo4j.com.Protocol.FileStreamsDeserializer |
| 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 |
EMPTY_SERIALIZER, INTEGER_DESERIALIZER, INTEGER_SERIALIZER, LONG_SERIALIZER, MAX_FRAME_LENGTH, PORT, VOID_DESERIALIZER, VOID_SERIALIZER |
| 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 |
MasterServer
public MasterServer(Master realMaster,
int port,
String storeDir)
getRequestContext
protected org.neo4j.com.RequestType<Master> getRequestContext(byte id)
- Specified by:
getRequestContext in class org.neo4j.com.Server<Master,Void>
finishOffConnection
protected void finishOffConnection(org.jboss.netty.channel.Channel channel,
org.neo4j.com.SlaveContext context)
- Specified by:
finishOffConnection in class org.neo4j.com.Server<Master,Void>
responseWritten
protected void responseWritten(org.neo4j.com.RequestType<Master> type,
org.jboss.netty.channel.Channel channel,
org.neo4j.com.SlaveContext context)
- Specified by:
responseWritten in class org.neo4j.com.Server<Master,Void>
getSlaveInformation
public Map<Integer,Collection<org.neo4j.com.SlaveContext>> getSlaveInformation()
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.