Esempio n. 1
0
 internal DatanodeStorageInfo(DatanodeDescriptor dn, DatanodeStorage s)
 {
     // The ID of the last full block report which updated this storage.
     this.dn          = dn;
     this.storageID   = s.GetStorageID();
     this.storageType = s.GetStorageType();
     this.state       = s.GetState();
 }
 private void ValidateStorageState(StorageReport[] storageReports, DatanodeStorage.State
                                   state)
 {
     foreach (StorageReport storageReport in storageReports)
     {
         DatanodeStorage storage = storageReport.GetStorage();
         Assert.AssertThat(storage.GetState(), CoreMatchers.Is(state));
     }
 }
Esempio n. 3
0
 internal virtual void SetState(DatanodeStorage.State state)
 {
     this.state = state;
 }
Esempio n. 4
0
 public DatanodeStorage(string sid, DatanodeStorage.State s, StorageType sm)
 {
     this.storageID   = sid;
     this.state       = s;
     this.storageType = sm;
 }