Class PlcNextSystemMetrics
java.lang.Object
de.iip_ecosphere.platform.support.metrics.plcnext.PlcNextSystemMetrics
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.metrics.SystemMetrics
public class PlcNextSystemMetrics
extends Object
implements de.iip_ecosphere.platform.support.metrics.SystemMetrics
System metrics implementation for Phoenix Contact/PLCnext.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate io.grpc.ManagedChannelprivate floatprivate io.netty.channel.epoll.EpollEventLoopGroupprivate booleanstatic final de.iip_ecosphere.platform.support.metrics.SystemMetricsprivate longstatic final Stringprivate static final IDeviceStatusServiceOuterClass.IDeviceStatusServiceGetItemRequestprivate static final IDeviceStatusServiceOuterClass.IDeviceStatusServiceGetItemRequestprivate static final longFields inherited from interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
INVALID_CELSIUS_TEMPERATURE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
getNumCpuCores, getOsArch, getOsName
-
Field Details
-
INSTANCE
public static final de.iip_ecosphere.platform.support.metrics.SystemMetrics INSTANCE -
PLCNEXT_SOCK
-
TIMEOUT
private static final long TIMEOUT- See Also:
-
REQUEST_BOARD_TEMPERATURE
private static final IDeviceStatusServiceOuterClass.IDeviceStatusServiceGetItemRequest REQUEST_BOARD_TEMPERATURE -
REQUEST_CPU_TEMPERATURE
private static final IDeviceStatusServiceOuterClass.IDeviceStatusServiceGetItemRequest REQUEST_CPU_TEMPERATURE -
client
-
lastRequest
private long lastRequest -
failed
private boolean failed -
channel
private io.grpc.ManagedChannel channel -
eventLoopGroup
private io.netty.channel.epoll.EpollEventLoopGroup eventLoopGroup -
boardTemp
private float boardTemp -
cpuTemp
private float cpuTemp
-
-
Constructor Details
-
PlcNextSystemMetrics
protected PlcNextSystemMetrics()Prevents external creation.
-
-
Method Details
-
request
private void request()Initialize the channel. -
getCaseTemperature
public float getCaseTemperature()- Specified by:
getCaseTemperaturein interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
getCpuTemperature
public float getCpuTemperature()- Specified by:
getCpuTemperaturein interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
getNumGpuCores
public int getNumGpuCores()- Specified by:
getNumGpuCoresin interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
getNumTpuCores
public int getNumTpuCores()- Specified by:
getNumTpuCoresin interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
close
public void close()- Specified by:
closein interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-