Neo4j Enterprise

org.neo4j.cluster
Class ProtocolServer

java.lang.Object
  extended by org.neo4j.cluster.ProtocolServer

public class ProtocolServer
extends Object

A ProtocolServer ties together the underlying ConnectedStateMachines with an understanding of ones own server address (me), and provides a proxy factory for creating clients to invoke the CSM.


Field Summary
protected  ConnectedStateMachines connectedStateMachines
           
protected  org.neo4j.cluster.statemachine.StateMachineProxyFactory proxyFactory
           
 
Constructor Summary
ProtocolServer(ConnectedStateMachines connectedStateMachines, org.neo4j.kernel.impl.util.StringLogger msgLog)
           
 
Method Summary
 void addBindingListener(BindingListener listener)
           
 void addStateTransitionListener(org.neo4j.cluster.statemachine.StateTransitionListener stateTransitionListener)
           
 ConnectedStateMachines getConnectedStateMachines()
           
 URI getServerId()
          Ok to have this accessible like this?
 org.neo4j.cluster.timeout.Timeouts getTimeouts()
           
 void listeningAt(URI me)
           
<T> T
newClient(Class<T> clientProxyInterface)
           
 void removeBindingListener(BindingListener listener)
           
 void removeStateTransitionListener(org.neo4j.cluster.statemachine.StateTransitionListener stateTransitionListener)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proxyFactory

protected org.neo4j.cluster.statemachine.StateMachineProxyFactory proxyFactory

connectedStateMachines

protected final ConnectedStateMachines connectedStateMachines
Constructor Detail

ProtocolServer

public ProtocolServer(ConnectedStateMachines connectedStateMachines,
                      org.neo4j.kernel.impl.util.StringLogger msgLog)
Method Detail

addBindingListener

public void addBindingListener(BindingListener listener)

removeBindingListener

public void removeBindingListener(BindingListener listener)

listeningAt

public void listeningAt(URI me)

getServerId

public URI getServerId()
Ok to have this accessible like this?

Returns:
server id

getConnectedStateMachines

public ConnectedStateMachines getConnectedStateMachines()

addStateTransitionListener

public void addStateTransitionListener(org.neo4j.cluster.statemachine.StateTransitionListener stateTransitionListener)

removeStateTransitionListener

public void removeStateTransitionListener(org.neo4j.cluster.statemachine.StateTransitionListener stateTransitionListener)

newClient

public <T> T newClient(Class<T> clientProxyInterface)

toString

public String toString()
Overrides:
toString in class Object

getTimeouts

public org.neo4j.cluster.timeout.Timeouts getTimeouts()

Neo4j Enterprise

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.