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.String
permissionName
Permission target name for the object the version information applies to.private ProductVersionHolder
versionInfo
-
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 void
checkMonitor()
Ensure caller has permission to monitor Derby.java.lang.String
getBuildNumber()
int
getMaintenanceVersion()
int
getMajorVersion()
int
getMinorVersion()
java.lang.String
getProductName()
java.lang.String
getProductTechnologyName()
java.lang.String
getProductVendorName()
java.lang.String
getVersionString()
Return the full version string.boolean
isAlpha()
boolean
isBeta()
-
-
-
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:
getProductName
in interfaceVersionMBean
-
getProductTechnologyName
public java.lang.String getProductTechnologyName()
- Specified by:
getProductTechnologyName
in interfaceVersionMBean
-
getProductVendorName
public java.lang.String getProductVendorName()
- Specified by:
getProductVendorName
in interfaceVersionMBean
-
getVersionString
public java.lang.String getVersionString()
Description copied from interface:VersionMBean
Return the full version string.- Specified by:
getVersionString
in interfaceVersionMBean
- Returns:
- Full version string.
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interfaceVersionMBean
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interfaceVersionMBean
-
getMaintenanceVersion
public int getMaintenanceVersion()
- Specified by:
getMaintenanceVersion
in interfaceVersionMBean
-
getBuildNumber
public java.lang.String getBuildNumber()
- Specified by:
getBuildNumber
in interfaceVersionMBean
-
isBeta
public boolean isBeta()
- Specified by:
isBeta
in interfaceVersionMBean
-
isAlpha
public boolean isAlpha()
- Specified by:
isAlpha
in interfaceVersionMBean
-
-