Interface LicenseMBean
-
public interface LicenseMBean
Attributes 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.long
getLicensedCapacity(String function, String version)
Returns the maximum capacity of the specified function/version for the license represented by this mbean.Date
getValidFrom()
The date this license takes forceDate
getValidUntil()
The date this license expiresString[]
getVersions()
The licensed versions permitted by this license.boolean
isCurrentlyValid()
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:
ConfigurationException
ManagementException
-
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, ManagementException
Test whether this license is valid for this SLEE
- Returns:
- true/valid or false/invalid
- Throws:
ConfigurationException
- An exceptionManagementException
- An exception
-
-