Class Version
- java.lang.Object
-
- org.apache.derby.iapi.services.info.Version
-
- All Implemented Interfaces:
VersionMBean
public class Version extends java.lang.Object implements VersionMBean
This implementation of VersionMBean instruments a ProductVersionHolder object. The MBean interface is implemented with callbacks to the wrapped object which gives detailed version information.- See Also:
ProductVersionHolder
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpermissionNamePermission target name for the object the version information applies to.private ProductVersionHolderversionInfo
-
Constructor Summary
Constructors Constructor Description Version(ProductVersionHolder pvh, java.lang.String permissionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckMonitor()Ensure caller has permission to monitor Derby.java.lang.StringgetBuildNumber()intgetMaintenanceVersion()intgetMajorVersion()intgetMinorVersion()java.lang.StringgetProductName()java.lang.StringgetProductTechnologyName()java.lang.StringgetProductVendorName()java.lang.StringgetVersionString()Return the full version string.booleanisAlpha()booleanisBeta()
-
-
-
Field Detail
-
versionInfo
private final ProductVersionHolder versionInfo
-
permissionName
private final java.lang.String permissionName
Permission target name for the object the version information applies to.
-
-
Constructor Detail
-
Version
public Version(ProductVersionHolder pvh, java.lang.String permissionName)
-
-
Method Detail
-
checkMonitor
private void checkMonitor()
Ensure caller has permission to monitor Derby.
-
getProductName
public java.lang.String getProductName()
- Specified by:
getProductNamein interfaceVersionMBean
-
getProductTechnologyName
public java.lang.String getProductTechnologyName()
- Specified by:
getProductTechnologyNamein interfaceVersionMBean
-
getProductVendorName
public java.lang.String getProductVendorName()
- Specified by:
getProductVendorNamein interfaceVersionMBean
-
getVersionString
public java.lang.String getVersionString()
Description copied from interface:VersionMBeanReturn the full version string.- Specified by:
getVersionStringin interfaceVersionMBean- Returns:
- Full version string.
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceVersionMBean
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceVersionMBean
-
getMaintenanceVersion
public int getMaintenanceVersion()
- Specified by:
getMaintenanceVersionin interfaceVersionMBean
-
getBuildNumber
public java.lang.String getBuildNumber()
- Specified by:
getBuildNumberin interfaceVersionMBean
-
isBeta
public boolean isBeta()
- Specified by:
isBetain interfaceVersionMBean
-
isAlpha
public boolean isAlpha()
- Specified by:
isAlphain interfaceVersionMBean
-
-