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.


Field Summary
protected  ConnectedStateMachines connectedStateMachines
           
protected  org.neo4j.cluster.statemachine.StateMachineProxyFactory proxyFactory
           
 
Constructor Summary
ProtocolServer(ConnectedStateMachines connectedStateMachines, Logging logging)
           
 
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,
                      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 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.