oshi.hardware.platform.unix.solaris.SolarisHardwareAbstractionLayer Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2016-2022 The OSHI Project Contributors
* SPDX-License-Identifier: MIT
*/
package oshi.hardware.platform.unix.solaris;
import java.util.List;
import oshi.annotation.concurrent.ThreadSafe;
import oshi.hardware.CentralProcessor;
import oshi.hardware.ComputerSystem;
import oshi.hardware.Display;
import oshi.hardware.GlobalMemory;
import oshi.hardware.GraphicsCard;
import oshi.hardware.HWDiskStore;
import oshi.hardware.NetworkIF;
import oshi.hardware.PowerSource;
import oshi.hardware.Sensors;
import oshi.hardware.SoundCard;
import oshi.hardware.UsbDevice;
import oshi.hardware.common.AbstractHardwareAbstractionLayer;
import oshi.hardware.platform.unix.UnixDisplay;
/**
* SolarisHardwareAbstractionLayer class.
*/
@ThreadSafe
public final class SolarisHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer {
@Override
public ComputerSystem createComputerSystem() {
return new SolarisComputerSystem();
}
@Override
public GlobalMemory createMemory() {
return new SolarisGlobalMemory();
}
@Override
public CentralProcessor createProcessor() {
return new SolarisCentralProcessor();
}
@Override
public Sensors createSensors() {
return new SolarisSensors();
}
@Override
public List getPowerSources() {
return SolarisPowerSource.getPowerSources();
}
@Override
public List getDiskStores() {
return SolarisHWDiskStore.getDisks();
}
@Override
public List getDisplays() {
return UnixDisplay.getDisplays();
}
@Override
public List getNetworkIFs(boolean includeLocalInterfaces) {
return SolarisNetworkIF.getNetworks(includeLocalInterfaces);
}
@Override
public List getUsbDevices(boolean tree) {
return SolarisUsbDevice.getUsbDevices(tree);
}
@Override
public List getSoundCards() {
return SolarisSoundCard.getSoundCards();
}
@Override
public List getGraphicsCards() {
return SolarisGraphicsCard.getGraphicsCards();
}
}