org.neo4j.cluster
Class ProtocolServer
java.lang.Object
org.neo4j.cluster.ProtocolServer
- All Implemented Interfaces:
- org.neo4j.cluster.com.BindingNotifier
public class ProtocolServer
- extends Object
- implements org.neo4j.cluster.com.BindingNotifier
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,
Logging logging)
addBindingListener
public void addBindingListener(BindingListener listener)
- Specified by:
addBindingListener in interface org.neo4j.cluster.com.BindingNotifier
removeBindingListener
public void removeBindingListener(BindingListener listener)
- Specified by:
removeBindingListener in interface org.neo4j.cluster.com.BindingNotifier
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.