1
2
3
4
5 package oshi.hardware.platform.unix.solaris;
6
7 import java.util.List;
8
9 import oshi.annotation.concurrent.ThreadSafe;
10 import oshi.hardware.CentralProcessor;
11 import oshi.hardware.ComputerSystem;
12 import oshi.hardware.Display;
13 import oshi.hardware.GlobalMemory;
14 import oshi.hardware.GraphicsCard;
15 import oshi.hardware.HWDiskStore;
16 import oshi.hardware.NetworkIF;
17 import oshi.hardware.PowerSource;
18 import oshi.hardware.Sensors;
19 import oshi.hardware.SoundCard;
20 import oshi.hardware.UsbDevice;
21 import oshi.hardware.common.AbstractHardwareAbstractionLayer;
22 import oshi.hardware.platform.unix.UnixDisplay;
23
24
25
26
27 @ThreadSafe
28 public final class SolarisHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer {
29
30 @Override
31 public ComputerSystem createComputerSystem() {
32 return new SolarisComputerSystem();
33 }
34
35 @Override
36 public GlobalMemory createMemory() {
37 return new SolarisGlobalMemory();
38 }
39
40 @Override
41 public CentralProcessor createProcessor() {
42 return new SolarisCentralProcessor();
43 }
44
45 @Override
46 public Sensors createSensors() {
47 return new SolarisSensors();
48 }
49
50 @Override
51 public List<PowerSource> getPowerSources() {
52 return SolarisPowerSource.getPowerSources();
53 }
54
55 @Override
56 public List<HWDiskStore> getDiskStores() {
57 return SolarisHWDiskStore.getDisks();
58 }
59
60 @Override
61 public List<Display> getDisplays() {
62 return UnixDisplay.getDisplays();
63 }
64
65 @Override
66 public List<NetworkIF> getNetworkIFs(boolean includeLocalInterfaces) {
67 return SolarisNetworkIF.getNetworks(includeLocalInterfaces);
68 }
69
70 @Override
71 public List<UsbDevice> getUsbDevices(boolean tree) {
72 return SolarisUsbDevice.getUsbDevices(tree);
73 }
74
75 @Override
76 public List<SoundCard> getSoundCards() {
77 return SolarisSoundCard.getSoundCards();
78 }
79
80 @Override
81 public List<GraphicsCard> getGraphicsCards() {
82 return SolarisGraphicsCard.getGraphicsCards();
83 }
84 }