Ejemplo n.º 1
0
        public override string MyName()
        {
            string name = parameter("name").apply(CommonState.boundAt());

            if (!string.ReferenceEquals(name, null))
            {
                return(name);
            }
            else
            {
                return(Me.ToString());
            }
        }
Ejemplo n.º 2
0
 public override void Joined()
 {
     CommonState.configuration().joined(Me, CommonState.boundAt());
     _clusterListeners.notify(_executor, listener => listener.enteredCluster(CommonState.configuration()));
 }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return("Me: " + Me + " Bound at: " + CommonState.boundAt() + " Config:" + CommonState.configuration() +
            " Current state: " + CommonState);
 }
Ejemplo n.º 4
0
 // Implementation
 public override void Created(string name)
 {
     CommonState.Configuration = new ClusterConfiguration(name, LogProvider, Collections.singleton(CommonState.boundAt()));
     Joined();
 }