public ClusterVNodeController(IPublisher outputBus, VNodeInfo nodeInfo, TFChunkDb db, ClusterVNodeSettings vnodeSettings, ClusterVNode node, MessageForwardingProxy forwardingProxy, ISubsystem[] subSystems) { Ensure.NotNull(outputBus, "outputBus"); Ensure.NotNull(nodeInfo, "nodeInfo"); Ensure.NotNull(db, "dbConfig"); Ensure.NotNull(vnodeSettings, "vnodeSettings"); Ensure.NotNull(node, "node"); Ensure.NotNull(forwardingProxy, "forwardingProxy"); _outputBus = outputBus; _nodeInfo = nodeInfo; _db = db; _node = node; _subSystems = subSystems; if (vnodeSettings.ClusterNodeCount == 1) { _serviceShutdownsToExpect = 4; } _subSystemInitsToExpect = _subSystems != null ? subSystems.Length : 0; _forwardingProxy = forwardingProxy; _forwardingTimeout = vnodeSettings.PrepareTimeout + vnodeSettings.CommitTimeout + TimeSpan.FromMilliseconds(300); _fsm = CreateFSM(); }
public SingleVNodeController(IPublisher outputBus, IPEndPoint httpEndPoint) { Ensure.NotNull(outputBus, "outputBus"); Ensure.NotNull(httpEndPoint, "httpEndPoint"); _outputBus = outputBus; _httpEndPoint = httpEndPoint; _fsm = CreateFSM(); }
public SingleVNodeController(IPublisher outputBus, IPEndPoint httpEndPoint, TFChunkDb db, SingleVNode node) { Ensure.NotNull(outputBus, "outputBus"); Ensure.NotNull(httpEndPoint, "httpEndPoint"); Ensure.NotNull(db, "db"); Ensure.NotNull(node, "node"); _outputBus = outputBus; _httpEndPoint = httpEndPoint; _db = db; _node = node; _fsm = CreateFSM(); }
public ClusterVNodeController(IPublisher outputBus, VNodeInfo nodeInfo, TFChunkDb db, ClusterVNodeSettings vnodeSettings, ClusterVNode node, MessageForwardingProxy forwardingProxy) { Ensure.NotNull(outputBus, "outputBus"); Ensure.NotNull(nodeInfo, "nodeInfo"); Ensure.NotNull(db, "dbConfig"); Ensure.NotNull(vnodeSettings, "vnodeSettings"); Ensure.NotNull(node, "node"); Ensure.NotNull(forwardingProxy, "forwardingProxy"); _outputBus = outputBus; _nodeInfo = nodeInfo; _db = db; _node = node; _forwardingProxy = forwardingProxy; _forwardingTimeout = vnodeSettings.PrepareTimeout + vnodeSettings.CommitTimeout + TimeSpan.FromMilliseconds(300); _fsm = CreateFSM(); }