|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.ha.CommunicationProtocol
org.neo4j.kernel.ha.MasterServer
public class MasterServer
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.kernel.ha.CommunicationProtocol |
|---|
CommunicationProtocol.AcquireLockSerializer, CommunicationProtocol.ByteData, CommunicationProtocol.Deserializer<T>, CommunicationProtocol.MasterCaller<T>, CommunicationProtocol.ObjectSerializer<T>, CommunicationProtocol.RequestType, CommunicationProtocol.Serializer |
| Field Summary |
|---|
| Fields inherited from class org.neo4j.kernel.ha.CommunicationProtocol |
|---|
EMPTY_SERIALIZER, INTEGER_DESERIALIZER, LOCK_RESULT_DESERIALIZER, PORT, VOID_DESERIALIZER |
| Constructor Summary | |
|---|---|
MasterServer(Master realMaster,
int port,
String storeDir)
|
|
| Method Summary | |
|---|---|
org.jboss.netty.channel.ChannelPipeline |
getPipeline()
|
Map<Integer,Collection<SlaveContext>> |
getSlaveInformation()
|
protected Pair<org.jboss.netty.buffer.ChannelBuffer,ByteBuffer> |
mapSlave(org.jboss.netty.channel.Channel channel,
SlaveContext slave)
|
void |
shutdown()
|
protected void |
unmapSlave(org.jboss.netty.channel.Channel channel,
SlaveContext slave)
|
| Methods inherited from class org.neo4j.kernel.ha.CommunicationProtocol |
|---|
handleRequest, readIdAllocation, readString, readTransactionStreams, writeSlaveContext, writeString, writeTransactionStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterServer(Master realMaster,
int port,
String storeDir)
| Method Detail |
|---|
public org.jboss.netty.channel.ChannelPipeline getPipeline()
throws Exception
getPipeline in interface org.jboss.netty.channel.ChannelPipelineFactoryException
protected Pair<org.jboss.netty.buffer.ChannelBuffer,ByteBuffer> mapSlave(org.jboss.netty.channel.Channel channel,
SlaveContext slave)
protected void unmapSlave(org.jboss.netty.channel.Channel channel,
SlaveContext slave)
public void shutdown()
public Map<Integer,Collection<SlaveContext>> getSlaveInformation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||