Exemple #1
0
 public Server(ClusterConfiguration clusterConfiguration)
 {
     _currentStatus = new UninitializedStatus(this);
     _statusFactory = new StatusFactory();
     // todo avoid hard-coded timespan
     _rpcChannel = new NetMqRpcChannel(clusterConfiguration, TimeSpan.FromMilliseconds(200));
 }
 public Server(ClusterConfiguration clusterConfiguration)
 {
     _currentStatus = new UninitializedStatus(this);
     _statusFactory = new StatusFactory();
     // todo avoid hard-coded timespan
     _rpcChannel = new NetMqRpcChannel(clusterConfiguration, TimeSpan.FromMilliseconds(200));
 }
Exemple #3
0
        internal void ChangeStatus(StatusType statusType)
        {
            Logger.Debug(String.Format("Server attempting to transition from initial state: {0} to {1}", _currentStatus.StatusType, statusType));

            _currentStatus.Dispose();
            _currentStatus = _statusFactory.Create(statusType, this);
            _currentStatus.EnterState();

            Logger.Debug(String.Format("Server transitioned to state {0}", statusType));
        }
        internal void ChangeStatus(StatusType statusType)
        {
            Logger.Debug(String.Format("Server attempting to transition from initial state: {0} to {1}", _currentStatus.StatusType, statusType));

            _currentStatus.Dispose();
            _currentStatus = _statusFactory.Create(statusType, this);
            _currentStatus.EnterState();

            Logger.Debug(String.Format("Server transitioned to state {0}", statusType));
        }