• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.datasources.utils.common;
17 
18 /**
19  * constant
20  *
21  * @since 2021/5/19 16:39
22  */
23 public class Constant {
24     /**
25      * Devtools plug-in device path
26      */
27     public static final String DEVTOOLS_PLUGINS_FULL_PATH = "developtools";
28 
29     /**
30      * Devtools plug-in path
31      */
32     public static final String DEVTOOLS_PLUGINS_LEAN_PATH = "stddeveloptools.tar";
33 
34     /**
35      * Unzip shell plug-in path
36      */
37     public static final String UNZIP_SHELL_PLUGINS_PATH = "ohosprofiler";
38 
39     /**
40      * File name
41      */
42     public static final String FILE_NAME = "hiprofilerd";
43 
44     /**
45      * HIPRO filer result: OK
46      */
47     public static final String PLUGIN_RESULT_OK = "OK";
48 
49     /**
50      * need to update Version
51      */
52     public static final String UPDATE_PLUGIN = "UPDATE PLUGIN";
53 
54     /**
55      * Device state: not found
56      */
57     public static final String PLUGIN_NOT_FOUND = "not found";
58 
59     /**
60      * Device SATA state: pushed
61      */
62     public static final String DEVICE_SATA_STAT_PUSHED = "pushed";
63 
64     /**
65      * Device state: FAIL
66      */
67     public static final String DEVICE_STAT_FAIL = "FAIL";
68 
69     /**
70      * Device state: offline
71      */
72     public static final String DEVICE_STAT_OFFLINE = "offline";
73 
74     /**
75      * Radix for conversion from BigInteger to string
76      */
77     public static final int RADIX = 16;
78 
79     /**
80      * size
81      */
82     public static final int MB = 1024;
83 
84     /**
85      * Abnormal state
86      */
87     public static final Long ABNORMAL = -1L;
88 
89     /**
90      * Memomy plug-in
91      */
92     public static final String MEMORY_PLUG = "memory-plugin";
93 
94     /**
95      * JVMTI agent plug-in
96      */
97     public static final String JVMTI_AGENT_PLUG = "jvmtiagent";
98 
99     /**
100      * memory plug
101      */
102     public static final String MEMORY_PLUGS_NAME = "/data/local/tmp/libmemdataplugin.z.so";
103 
104     /**
105      * memory plug name
106      */
107     public static final String MEMORY_PLUGS = "libmemdataplugin";
108 
109     /**
110      * JNATIVE_HOOK_DB
111      */
112     public static final String NATIVE_HOOK_DB = "nativeHook";
113 
114     /**
115      * cpu plug
116      */
117     public static final String CPU_PLUGS_NAME = "/data/local/tmp/libcpudataplugin.z.so";
118 
119     /**
120      * Cpu plug-in
121      */
122     public static final String CPU_PLUG = "cpu-plugin";
123 
124     /**
125      * diskIo plug
126      */
127     public static final String DISK_IO_PLUG = "diskio-plugin";
128 
129     /**
130      * network plug-in
131      */
132     public static final String NETWORK_PLUG = "libnetworkplugin";
133 
134     /**
135      * network plug-in name
136      */
137     public static final String NETWORK_PLUG_NAME = "network-plugin";
138 
139     /**
140      * network plug name
141      */
142     public static final String NETWORK_PLUGS_NAME = "/data/local/tmp/libnetworkplugin.z.so";
143 
144     /**
145      * cpu plug
146      */
147     public static final String ENERGY_PLUGS_NAME = "/data/local/tmp/libcpudataplugin.z.so";
148 
149     /**
150      * Cpu plug-in
151      */
152     public static final String ENERGY_PLUG = "energy-plugin";
153 
154     /**
155      * energy plug name
156      */
157     public static final String ENERGY_PLUGS = "libenergydataplugin";
158 
159 
160     /**
161      * process plug
162      */
163     public static final String PROCESS_PLUGS_NAME = "/data/local/tmp/libprocessplugin.z.so";
164 
165     /**
166      * process plug name
167      */
168     public static final String PROCESS_PLUGS = "process-plugin";
169 
170     /**
171      * TIME_OUT
172      */
173     public static final String TIME_OUT = "TimeOut";
174 
175 
Constant()176     private Constant() {
177     }
178 }
179