org.neo4j.kernel.ha.comm
Class MasterServer
java.lang.Object
org.neo4j.kernel.ha.comm.MasterServer
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelPipelineFactory
public class MasterServer
- extends Object
- implements org.jboss.netty.channel.ChannelPipelineFactory
Sits on the master side, receiving serialized requests from slaves (via
MasterClient). Delegates actual work to MasterImpl.
| 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)
getPipeline
public org.jboss.netty.channel.ChannelPipeline getPipeline()
throws Exception
- Specified by:
getPipeline in interface org.jboss.netty.channel.ChannelPipelineFactory
- Throws:
Exception
mapSlave
protected void mapSlave(org.jboss.netty.channel.Channel channel,
SlaveContext slave)
unmapSlave
protected void unmapSlave(org.jboss.netty.channel.Channel channel,
SlaveContext slave)
shutdown
public void shutdown()
getSlaveInformation
public Map<Integer,Collection<SlaveContext>> getSlaveInformation()
Copyright © 2010 The Neo4j Graph Database Project. All Rights Reserved.