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)); } }
internal virtual void SetState(DatanodeStorage.State state) { this.state = state; }
public DatanodeStorage(string sid, DatanodeStorage.State s, StorageType sm) { this.storageID = sid; this.state = s; this.storageType = sm; }