package com.jpragma.snmp.samples;

public class JvmStatStandalone {
 
private String appName = "JVM Statistics";
 
private int poolSize = 10;
 
 
public String getAppName() {
   
return appName;
 
}
 
public void setAppName(String appName) {
   
this.appName = appName;
 
}
 
public int getPoolSize() {
   
return poolSize;
 
}
 
public void setPoolSize(int poolSize) {
   
this.poolSize = poolSize;
 
}

 
public int getAvailableProcessors() {
   
return Runtime.getRuntime().availableProcessors();
 
}

 
public long getFreeMemory() {
   
return Runtime.getRuntime().freeMemory();
 
}
 
 
public long getMaxMemory() {
   
return Runtime.getRuntime().maxMemory();
 
}
 
 
public long getTotalMemory() {
   
return Runtime.getRuntime().totalMemory();
 
}
 
 
public int getNumberOfThreads() {
   
return Thread.activeCount();
 
}
}