public class CpuMetricReceiver extends Object implements Closeable
Constructor and Description |
---|
CpuMetricReceiver(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getNumberOfTM() |
double |
getTotalCpu() |
static void |
main(String[] args) |
void |
runServer() |
void |
runServerBlocking() |
public CpuMetricReceiver(String host, int port)
public void runServer()
public void runServerBlocking()
public double getTotalCpu()
public int getNumberOfTM()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public static void main(String[] args) throws InterruptedException
InterruptedException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.