MCPcopy
hub / github.com/oshi/oshi / main

Method main

oshi-core/src/test/java/oshi/SystemInfoTest.java:96–168  ·  view source on GitHub ↗

The main method, demonstrating use of classes. @param args the arguments (unused)

(String[] args)

Source from the content-addressed store, hash-verified

94 * the arguments (unused)
95 */
96 public static void main(String[] args) {
97
98 logger.info("Initializing System...");
99 SystemInfo si = new SystemInfo();
100
101 HardwareAbstractionLayer hal = si.getHardware();
102 OperatingSystem os = si.getOperatingSystem();
103
104 printOperatingSystem(os);
105
106 logger.info("Checking computer system...");
107 printComputerSystem(hal.getComputerSystem());
108
109 logger.info("Checking Processor...");
110 printProcessor(hal.getProcessor());
111
112 logger.info("Checking Memory...");
113 printMemory(hal.getMemory());
114
115 logger.info("Checking CPU...");
116 printCpu(hal.getProcessor());
117
118 logger.info("Checking Processes...");
119 printProcesses(os, hal.getMemory());
120
121 logger.info("Checking Services...");
122 printServices(os);
123
124 logger.info("Checking Sensors...");
125 printSensors(hal.getSensors());
126
127 logger.info("Checking Power sources...");
128 printPowerSources(hal.getPowerSources());
129
130 logger.info("Checking Disks...");
131 printDisks(hal.getDiskStores());
132
133 logger.info("Checking Logical Volume Groups ...");
134 printLVgroups(hal.getLogicalVolumeGroups());
135
136 logger.info("Checking File System...");
137 printFileSystem(os.getFileSystem());
138
139 logger.info("Checking Network interfaces...");
140 printNetworkInterfaces(hal.getNetworkIFs());
141
142 logger.info("Checking Network parameters...");
143 printNetworkParameters(os.getNetworkParams());
144
145 logger.info("Checking IP statistics...");
146 printInternetProtocolStats(os.getInternetProtocolStats());
147
148 logger.info("Checking Displays...");
149 printDisplays(hal.getDisplays());
150
151 logger.info("Checking USB Devices...");
152 printUsbDevices(hal.getUsbDevices(true));
153

Callers 1

testPlatformEnumMethod · 0.95

Calls 15

getHardwareMethod · 0.95
getOperatingSystemMethod · 0.95
printOperatingSystemMethod · 0.95
printComputerSystemMethod · 0.95
getComputerSystemMethod · 0.95
printProcessorMethod · 0.95
getProcessorMethod · 0.95
printMemoryMethod · 0.95
getMemoryMethod · 0.95
printCpuMethod · 0.95
printProcessesMethod · 0.95
printServicesMethod · 0.95

Tested by

no test coverage detected