Interface LicenseMBean
-
public interface LicenseMBeanAttributes which constrain and the operation of the SLEE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getFunctions()The licensed functions permitted by this license.longgetLicensedCapacity(String function, String version)Returns the maximum capacity of the specified function/version for the license represented by this mbean.DategetValidFrom()The date this license takes forceDategetValidUntil()The date this license expiresString[]getVersions()The licensed versions permitted by this license.booleanisCurrentlyValid()Test whether this license is valid for this SLEE
-
-
-
Method Detail
-
getFunctions
String[] getFunctions() throws ConfigurationException, ManagementException
The licensed functions permitted by this license.
- Returns:
- functional names
- Throws:
ConfigurationException- An exceptionManagementException- An exception
-
getVersions
String[] getVersions() throws ConfigurationException, ManagementException
The licensed versions permitted by this license.
- Returns:
- version names
- Throws:
ConfigurationException- An exceptionManagementException- An exception
-
getLicensedCapacity
long getLicensedCapacity(String function, String version) throws ConfigurationException, ManagementException
Returns the maximum capacity of the specified function/version for the license represented by this mbean.
- Parameters:
function- the function stringversion- the function version- Returns:
- the maximum capacity of the specified function/version
- Throws:
ConfigurationExceptionManagementException
-
getValidFrom
Date getValidFrom() throws ConfigurationException, ManagementException
The date this license takes force
- Returns:
- a date
- Throws:
ConfigurationException- An exceptionManagementException- An exception
-
getValidUntil
Date getValidUntil() throws ConfigurationException, ManagementException
The date this license expires
- Returns:
- a date
- Throws:
ConfigurationException- An exceptionManagementException- An exception
-
isCurrentlyValid
boolean isCurrentlyValid() throws ConfigurationException, ManagementExceptionTest whether this license is valid for this SLEE
- Returns:
- true/valid or false/invalid
- Throws:
ConfigurationException- An exceptionManagementException- An exception
-
-