Class EnrollLUMLicense

  • All Implemented Interfaces:
    com.ibm.LUMClient.LicenseConstants

    public class EnrollLUMLicense
    extends java.lang.Object
    implements com.ibm.LUMClient.LicenseConstants
    EnrollLUMLicense is the class that handles enrolling a LUM license.
    • Field Summary

      • Fields inherited from interface com.ibm.LUMClient.LicenseConstants

        ANY, CapacityTypes, CONC_NODELOCK, CONC_OFFLINE, CONCURRENT, CU_INTEL_PROC, CU_INTEL_PROC64, CU_PA_RISC_PROC, CU_PHYSICAL_DISKS, CU_PHYSICAL_MEMORY, CU_PROCESSORS_CONFIGURED, CU_PROCESSORS_ONLINE, CU_RISC_PROC, CU_RISC_PROC64, CU_SPARC_PROC, CU_VALUE_UNITS, IBM_Vendor_ID, LCT_ATTR_BUNDLE, LCT_ATTR_CAPACITY_LICENSE, LCT_ATTR_CUSTOM1, LCT_ATTR_CUSTOM2, LCT_ATTR_CUSTOM3, LCT_ATTR_DIST_LICENSE, LCT_ATTR_HAL_LICENSE, LCT_ATTR_LEVEL1_LICENSE, LCT_ATTR_NO_ATTRIBUTE, LCT_ATTR_PROGRAM_SPECIFIC, LCT_ATTR_SOFT_STOP_LICENSE, LCT_ATTR_TRY_AND_BUY_LICENSE, LCT_ATTR_UPGRADE_LICENSE, LIC_NOT_FOUND, LICENSEATTRIBUTES, LICENSETYPE, NAMED, NETLS_GET_FLAG, NETLS_NOTUSED, NETLS_SET_FLAG, NLS_EXT_INFO_LEN, NO_SUCH_PRODUCT, NOT_ENOUGH_LICS, NOT_LICS, PARAMETERS, PAST_EXP_DATE, PER_SEAT, PER_SERVER, RESERVABLE, RESERVED, SET_GROUP, SET_NODEFILE, SET_TARGET_SOURCE, SET_TIMEOUT_FACTOR, SIMPLE_NODELOCKED, STATUS_NOT_OK, STATUS_OK, TARGETTYPE, TEST_VENDOR_ID, USE_ONCE, USE_ONCE_NODELOCKED
    • Constructor Summary

      Constructors 
      Constructor Description
      EnrollLUMLicense​(java.lang.String nodelockFilePath, java.lang.String certificate, java.lang.String type, boolean enrollingBoth)
      Constructor for EnrollLUMLicense.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enrollFullLicense​(java.lang.String nodelockFilePath, java.lang.String certificate)
      Enroll a full license
      void enrollTryAndBuy​(java.lang.String nodelockFilePath, java.lang.String certificate, boolean ignoreEXP)
      Enroll a trial license.
      java.lang.String extractPwdFromCert​(java.io.File certFile)
      Extract the password from the full license file
      int getRC()
      Return the value of the return code variable
      void replaceTryAndBuy​(java.io.File nodelockFilePath, java.lang.String password)
      Upgrade from trial to full
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnrollLUMLicense

        public EnrollLUMLicense​(java.lang.String nodelockFilePath,
                                java.lang.String certificate,
                                java.lang.String type,
                                boolean enrollingBoth)
        Constructor for EnrollLUMLicense. Enrolls the full or trial license (or both)
        Parameters:
        nodelockFilePath - Location of the nodelock file. For TDI, this should be /license/nodelock
        certificate - The text file that represents the trial or full certificate
        type - License type: tryandbuy or full
    • Method Detail

      • getRC

        public int getRC()
        Return the value of the return code variable
        Returns:
        return code value
      • enrollTryAndBuy

        public void enrollTryAndBuy​(java.lang.String nodelockFilePath,
                                    java.lang.String certificate,
                                    boolean ignoreEXP)
        Enroll a trial license.
        Parameters:
        nodelockFilePath - Location of the nodelock file. For TDI, this should be /license/nodelock
        certificate - The text file that represents the trial or full certificate
      • enrollFullLicense

        public void enrollFullLicense​(java.lang.String nodelockFilePath,
                                      java.lang.String certificate)
        Enroll a full license
        Parameters:
        nodelockFilePath - Location of the nodelock file. For TDI, this should be /license/nodelock
        certificate - The text file that represents the trial or full certificate
      • replaceTryAndBuy

        public void replaceTryAndBuy​(java.io.File nodelockFilePath,
                                     java.lang.String password)
        Upgrade from trial to full
        Parameters:
        nodelockFilePath - Location of the nodelock file. For TDI, this should be /license/nodelock
        password -
      • extractPwdFromCert

        public java.lang.String extractPwdFromCert​(java.io.File certFile)
        Extract the password from the full license file
        Parameters:
        certFile - Full license file
        Returns:
        Extracted password if found, null otherwise