org.neo4j.cluster
Class ProtocolServer
java.lang.Object
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.
proxyFactory
protected org.neo4j.cluster.statemachine.StateMachineProxyFactory proxyFactory
connectedStateMachines
protected final ConnectedStateMachines connectedStateMachines
ProtocolServer
public ProtocolServer(ConnectedStateMachines connectedStateMachines,
org.neo4j.kernel.impl.util.StringLogger msgLog)
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()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.