Package io.hekate.cluster
Interface ClusterNodeRuntime
-
public interface ClusterNodeRuntime
Information about the JVM process of theClusterNode
.- See Also:
ClusterNode.runtime()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
cpus()
Returns the number of CPUs that are available to the Java virtual machine.String
jvmName()
Returns the Java virtual machine implementation name ('java.vm.name'system property
).String
jvmVendor()
Returns the Java virtual machine implementation vendor ('java.vm.vendor'system property
).String
jvmVersion()
Returns the Java runtime environment version ('java.version'system property
).long
maxMemory()
Returns the maximum amount of memory as provided byRuntime.maxMemory()
.String
osArch()
Returns the operating system architecture ('os.arch'system property
).String
osName()
Returns the name of an operating system ('os.name'system property
).String
osVersion()
Returns the operating system version ('os.version'system property
).String
pid()
Returns PID of a Java virtual machine system process.
-
-
-
Method Detail
-
cpus
int cpus()
Returns the number of CPUs that are available to the Java virtual machine.- Returns:
- Number of CPUs that are available to the Java virtual machine.
- See Also:
Runtime.availableProcessors()
-
maxMemory
long maxMemory()
Returns the maximum amount of memory as provided byRuntime.maxMemory()
.- Returns:
- Maximum amount of memory.
- See Also:
Runtime.maxMemory()
-
osName
String osName()
Returns the name of an operating system ('os.name'system property
).- Returns:
- Operating system name or an empty string if such information is not available.
-
osArch
String osArch()
Returns the operating system architecture ('os.arch'system property
).- Returns:
- Operating system architecture or an empty string if such information is not available.
-
osVersion
String osVersion()
Returns the operating system version ('os.version'system property
).- Returns:
- Operating system version or an empty string if such information is not available.
-
jvmVersion
String jvmVersion()
Returns the Java runtime environment version ('java.version'system property
).- Returns:
- Java runtime environment version or an empty string if such information is not available.
-
jvmName
String jvmName()
Returns the Java virtual machine implementation name ('java.vm.name'system property
).- Returns:
- Java virtual machine implementation name or an empty string if such information is not available.
-
jvmVendor
String jvmVendor()
Returns the Java virtual machine implementation vendor ('java.vm.vendor'system property
).- Returns:
- Java virtual machine implementation name or an empty string if such information is not available.
-
-