Esempio n. 1
0
 public DatanodeInfo(DatanodeID nodeID, string location, long capacity, long dfsUsed
                     , long remaining, long blockPoolUsed, long cacheCapacity, long cacheUsed, long lastUpdate
                     , long lastUpdateMonotonic, int xceiverCount, DatanodeInfo.AdminStates adminState
                     )
     : this(nodeID.GetIpAddr(), nodeID.GetHostName(), nodeID.GetDatanodeUuid(), nodeID
            .GetXferPort(), nodeID.GetInfoPort(), nodeID.GetInfoSecurePort(), nodeID.GetIpcPort
                (), capacity, dfsUsed, remaining, blockPoolUsed, cacheCapacity, cacheUsed, lastUpdate
            , lastUpdateMonotonic, xceiverCount, location, adminState)
 {
 }
Esempio n. 2
0
 public DatanodeInfo(DatanodeID nodeID)
     : base(nodeID)
 {
     this.capacity            = 0L;
     this.dfsUsed             = 0L;
     this.remaining           = 0L;
     this.blockPoolUsed       = 0L;
     this.cacheCapacity       = 0L;
     this.cacheUsed           = 0L;
     this.lastUpdate          = 0L;
     this.lastUpdateMonotonic = 0L;
     this.xceiverCount        = 0;
     this.adminState          = null;
 }
Esempio n. 3
0
 public DatanodeInfo(DatanodeID nodeID, string location)
     : this(nodeID)
 {
     this.location = location;
 }
Esempio n. 4
0
 /// <summary>
 /// The exception is thrown if a different data-node claims the same
 /// storage id as the existing one.
 /// </summary>
 /// <param name="nodeID">unregistered data-node</param>
 /// <param name="storedNode">data-node stored in the system with this storage id</param>
 public UnregisteredNodeException(DatanodeID nodeID, DatanodeInfo storedNode)
     : base("Data node " + nodeID + " is attempting to report storage ID " + nodeID.GetDatanodeUuid
                () + ". Node " + storedNode + " is expected to serve this storage.")
 {
 }