public class DefaultOperatingSystemDetails extends Object implements OperatingSystemDetails
OperatingSystemDetails.DriveDetails, OperatingSystemDetails.NetworkDetails, OperatingSystemDetails.VendorDetails| Constructor and Description |
|---|
DefaultOperatingSystemDetails(OSDetails details) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArch()
Returns the architecture of the operating system.
|
int |
getAvailableProcessors()
Returns the number of available processors.
|
Map<String,OperatingSystemDetails.DriveDetails> |
getDriveDetails()
Returns drive details
|
String |
getHostAddress()
Returns the (local) host address of the OS.
|
String |
getHostName()
Returns the (local) host name of the OS.
|
String |
getName()
Returns the name of the operating system.
|
Map<String,OperatingSystemDetails.NetworkDetails> |
getNetworkDetails()
Returns network details
|
long |
getTotalPhysicalMemorySizeInBytes()
Returns the total physical memory size in bytes.
|
double |
getTotalPhysicalMemorySizeInGB()
Returns the total physical memory size in giga byes.
|
double |
getTotalPhysicalMemorySizeInMB()
Returns the total physical memory size in mega bytes.
|
long |
getTotalSwapSpaceSizeInBytes()
Returns the total swap space size in bytes.
|
double |
getTotalSwapSpaceSizeInGB()
Returns the total swap space size in giga bytes.
|
double |
getTotalSwapSpaceSizeInMB()
Returns the total swap space size in mega bytes.
|
String |
getUid()
Returns the uid of the operating system.
|
OperatingSystemDetails.VendorDetails |
getVendorDetails() |
String |
getVersion()
Returns the version of the operating system.
|
boolean |
isNA()
Returns
true if the details are not available. |
public DefaultOperatingSystemDetails(OSDetails details)
public boolean isNA()
OperatingSystemDetailstrue if the details are not available.isNA in interface OperatingSystemDetailspublic String getUid()
OperatingSystemDetailsgetUid in interface OperatingSystemDetailspublic String getName()
OperatingSystemDetailsgetName in interface OperatingSystemDetailsOperatingSystemMXBean.getName()public String getArch()
OperatingSystemDetailsgetArch in interface OperatingSystemDetailsOperatingSystemMXBean.getArch()public String getVersion()
OperatingSystemDetailsgetVersion in interface OperatingSystemDetailsOperatingSystemMXBean.getVersion()public int getAvailableProcessors()
OperatingSystemDetailsgetAvailableProcessors in interface OperatingSystemDetailsOperatingSystemMXBean.getAvailableProcessors()public long getTotalSwapSpaceSizeInBytes()
OperatingSystemDetailsNote, currently only available on SUN VM.
getTotalSwapSpaceSizeInBytes in interface OperatingSystemDetailspublic double getTotalSwapSpaceSizeInMB()
OperatingSystemDetailsNote, currently only available on SUN VM.
getTotalSwapSpaceSizeInMB in interface OperatingSystemDetailspublic double getTotalSwapSpaceSizeInGB()
OperatingSystemDetailsNote, currently only available on SUN VM.
getTotalSwapSpaceSizeInGB in interface OperatingSystemDetailspublic long getTotalPhysicalMemorySizeInBytes()
OperatingSystemDetailsNote, currently only available on SUN VM.
getTotalPhysicalMemorySizeInBytes in interface OperatingSystemDetailspublic double getTotalPhysicalMemorySizeInMB()
OperatingSystemDetailsNote, currently only available on SUN VM.
getTotalPhysicalMemorySizeInMB in interface OperatingSystemDetailspublic double getTotalPhysicalMemorySizeInGB()
OperatingSystemDetailsNote, currently only available on SUN VM.
getTotalPhysicalMemorySizeInGB in interface OperatingSystemDetailspublic String getHostName()
OperatingSystemDetailsgetHostName in interface OperatingSystemDetailspublic String getHostAddress()
OperatingSystemDetailsgetHostAddress in interface OperatingSystemDetailspublic Map<String,OperatingSystemDetails.NetworkDetails> getNetworkDetails()
OperatingSystemDetailsgetNetworkDetails in interface OperatingSystemDetailspublic Map<String,OperatingSystemDetails.DriveDetails> getDriveDetails()
OperatingSystemDetailsgetDriveDetails in interface OperatingSystemDetailspublic OperatingSystemDetails.VendorDetails getVendorDetails()
getVendorDetails in interface OperatingSystemDetailsnull if no vendor details available (e.g.
when using JMX and not Sigar).Copyright © GigaSpaces.