Neo4j Enterprise

org.neo4j.cluster
Class ProtocolServer

java.lang.Object
  extended by 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.


Constructor Summary
ProtocolServer(InstanceId me, StateMachines stateMachines, org.neo4j.kernel.logging.Logging logging)
           
 
Method Summary
 void addBindingListener(BindingListener listener)
           
 void addStateTransitionListener(org.neo4j.cluster.statemachine.StateTransitionListener stateTransitionListener)
           
 URI boundAt()
           
 InstanceId getServerId()
          Ok to have this accessible like this?
 StateMachines getStateMachines()
           
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtocolServer

public ProtocolServer(InstanceId me,
                      StateMachines stateMachines,
                      org.neo4j.kernel.logging.Logging logging)
Method Detail

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 InstanceId getServerId()
Ok to have this accessible like this?

Returns:
server id

getStateMachines

public StateMachines getStateMachines()

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()

boundAt

public URI boundAt()

Neo4j Enterprise

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