提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
public class NET_STORAGE_RAID extends NetSDKLib.SdkStructure { |
|
6 |
|
|
7 |
public NET_STORAGE_RAID() { |
|
8 |
this.dwSize = this.size(); |
|
9 |
for (int i = 0; i < stuMemberInfos.length; i ++) { |
|
10 |
stuMemberInfos[i] = new NET_RAID_MEMBER_INFO(); |
|
11 |
} |
|
12 |
} |
|
13 |
|
|
14 |
public int dwSize; |
|
15 |
public int nLevel; // 等级 |
|
16 |
public int nState; // RAID状态组合, 如 DH_RAID_STATE_ACTIVE | DH_RAID_STATE_DEGRADED |
|
17 |
public int nMemberNum; // 成员数量 |
|
18 |
public byte[] szMembers=new byte[32*128]; // RAID成员 |
|
19 |
public float fRecoverPercent; // 同步百分比, 0~100, RAID状态中有"Recovering"或"Resyncing"时有效 |
|
20 |
public float fRecoverMBps; // 同步速度, 单位MBps, RAID状态中有"Recovering"或"Resyncing"时有效 |
|
21 |
public float fRecoverTimeRemain; // 同步剩余时间, 单位分钟, RAID状态中有"Recovering"或"Resyncing"时有效 |
|
22 |
//public NET_RAID_MEMBER_INFO[] stuMemberInfos = (NET_RAID_MEMBER_INFO[])new NET_RAID_MEMBER_INFO().toArray(32); // RAID成员信息 |
|
23 |
|
|
24 |
public NET_RAID_MEMBER_INFO[] stuMemberInfos = new NET_RAID_MEMBER_INFO[32]; // RAID成员信息 |
|
25 |
public int nRaidDevices; // RAID设备个数 |
|
26 |
public int nTotalDevices; // RAID设备总数 |
|
27 |
public int nActiveDevices; // 活动设备个数 |
|
28 |
public int nWorkingDevices; // 工作设备个数 |
|
29 |
public int nFailedDevices; // 失败设备个数 |
|
30 |
public int nSpareDevices; // 热备设备个数 |
|
31 |
|
|
32 |
public byte[] szAliasName = new byte[24]; // RAID别名,UTF-8编码,建议使用szAliasNameEx |
|
33 |
public byte[] szAliasNameEx = new byte[32]; // RAID别名,UTF-8编码 |
|
34 |
} |