Package org.openspaces.admin.internal.os
Class DefaultOperatingSystemDetails
java.lang.Object
org.openspaces.admin.internal.os.DefaultOperatingSystemDetails
- All Implemented Interfaces:
OperatingSystemDetails
- Author:
- kimchy, itaif - added DriveDetails in v8.0.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openspaces.admin.os.OperatingSystemDetails
OperatingSystemDetails.DriveDetails, OperatingSystemDetails.NetworkDetails, OperatingSystemDetails.VendorDetails -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArch()Returns the architecture of the operating system.intReturns the number of available processors.Returns drive detailsReturns the (local) host address of the OS.Returns the (local) host name of the OS.getName()Returns the name of the operating system.Returns network detailslongReturns the total physical memory size in bytes.doubleReturns the total physical memory size in giga byes.doubleReturns the total physical memory size in mega bytes.longReturns the total swap space size in bytes.doubleReturns the total swap space size in giga bytes.doubleReturns the total swap space size in mega bytes.getUid()Returns the uid of the operating system.Returns the version of the operating system.booleanisNA()Returnstrueif the details are not available.
-
Constructor Details
-
DefaultOperatingSystemDetails
-
-
Method Details
-
isNA
public boolean isNA()Description copied from interface:OperatingSystemDetailsReturnstrueif the details are not available.- Specified by:
isNAin interfaceOperatingSystemDetails
-
getUid
Description copied from interface:OperatingSystemDetailsReturns the uid of the operating system.- Specified by:
getUidin interfaceOperatingSystemDetails
-
getName
Description copied from interface:OperatingSystemDetailsReturns the name of the operating system.- Specified by:
getNamein interfaceOperatingSystemDetails- See Also:
-
getArch
Description copied from interface:OperatingSystemDetailsReturns the architecture of the operating system.- Specified by:
getArchin interfaceOperatingSystemDetails- See Also:
-
getVersion
Description copied from interface:OperatingSystemDetailsReturns the version of the operating system.- Specified by:
getVersionin interfaceOperatingSystemDetails- See Also:
-
getAvailableProcessors
public int getAvailableProcessors()Description copied from interface:OperatingSystemDetailsReturns the number of available processors.- Specified by:
getAvailableProcessorsin interfaceOperatingSystemDetails- See Also:
-
getTotalSwapSpaceSizeInBytes
public long getTotalSwapSpaceSizeInBytes()Description copied from interface:OperatingSystemDetailsReturns the total swap space size in bytes.Note, currently only available on SUN VM.
- Specified by:
getTotalSwapSpaceSizeInBytesin interfaceOperatingSystemDetails
-
getTotalSwapSpaceSizeInMB
public double getTotalSwapSpaceSizeInMB()Description copied from interface:OperatingSystemDetailsReturns the total swap space size in mega bytes.Note, currently only available on SUN VM.
- Specified by:
getTotalSwapSpaceSizeInMBin interfaceOperatingSystemDetails
-
getTotalSwapSpaceSizeInGB
public double getTotalSwapSpaceSizeInGB()Description copied from interface:OperatingSystemDetailsReturns the total swap space size in giga bytes.Note, currently only available on SUN VM.
- Specified by:
getTotalSwapSpaceSizeInGBin interfaceOperatingSystemDetails
-
getTotalPhysicalMemorySizeInBytes
public long getTotalPhysicalMemorySizeInBytes()Description copied from interface:OperatingSystemDetailsReturns the total physical memory size in bytes.Note, currently only available on SUN VM.
- Specified by:
getTotalPhysicalMemorySizeInBytesin interfaceOperatingSystemDetails
-
getTotalPhysicalMemorySizeInMB
public double getTotalPhysicalMemorySizeInMB()Description copied from interface:OperatingSystemDetailsReturns the total physical memory size in mega bytes.Note, currently only available on SUN VM.
- Specified by:
getTotalPhysicalMemorySizeInMBin interfaceOperatingSystemDetails
-
getTotalPhysicalMemorySizeInGB
public double getTotalPhysicalMemorySizeInGB()Description copied from interface:OperatingSystemDetailsReturns the total physical memory size in giga byes.Note, currently only available on SUN VM.
- Specified by:
getTotalPhysicalMemorySizeInGBin interfaceOperatingSystemDetails
-
getHostName
Description copied from interface:OperatingSystemDetailsReturns the (local) host name of the OS.- Specified by:
getHostNamein interfaceOperatingSystemDetails
-
getHostAddress
Description copied from interface:OperatingSystemDetailsReturns the (local) host address of the OS.- Specified by:
getHostAddressin interfaceOperatingSystemDetails
-
getNetworkDetails
Description copied from interface:OperatingSystemDetailsReturns network details- Specified by:
getNetworkDetailsin interfaceOperatingSystemDetails
-
getDriveDetails
Description copied from interface:OperatingSystemDetailsReturns drive details- Specified by:
getDriveDetailsin interfaceOperatingSystemDetails
-
getVendorDetails
- Specified by:
getVendorDetailsin interfaceOperatingSystemDetails- Returns:
- Returns the vendor details;
nullif no vendor details available (e.g. when using JMX and not Sigar).
-