public StatusUpdateTask(IMessageStatistics statistics) { try { _nodeInfo = new NodeStatusInfo(statistics); _nodeInfo.HeartbeatExtensions.Add(new CpuInfo()); _nodeInfo.HeartbeatExtensions.Add(new NetworkIO()); _nodeInfo.HeartbeatExtensions.Add(new DiskIO()); _nodeInfo.Refresh(); _nodeInfo.HaveAcessRight = true; } catch { } }
public StatusUpdateTask(IMessageStatistics mStatistics, Domain domainInfo) { this.domainInfo = domainInfo; try { m_nodeInfo = new NodeStatusInfo(mStatistics); m_nodeInfo.HeartBeatExtensions.Add(new CpuInfo()); m_nodeInfo.HeartBeatExtensions.Add(new NetworkIO()); m_nodeInfo.HeartBeatExtensions.Add(new DiskIO()); m_nodeInfo.Refresh(); m_nodeInfo.HaveAcessRight = true; } catch { } }