ilog.rules.res.model.archive

Class IlrArchiveManager

  • java.lang.Object
    • ilog.rules.res.model.archive.IlrArchiveManager
    • Constructor Detail

      • IlrArchiveManager

        public IlrArchiveManager()
    • Method Detail

      • write

        public void write(java.io.OutputStream outputStream,
                 java.util.Set<IlrMutableRuleAppInformation> ruleApps)
                   throws java.io.IOException,
                          IlrArchiveException
        Backs up a Set of IlrRuleAppInformation objects to a RuleApp archive.
        Throws:
        IlrArchiveException - If an error occurred during the backup.
        java.io.IOException - If an input/output exception was raised
        Parameters:
        outputStream - The output stream where the RuleApp archive will be stored. Cannot be null.
        ruleApps - a Set of IlrRuleAppInformation objects. Cannot be null or empty.
      • write

        public void write(java.io.OutputStream outputStream,
                 IlrMutableRuleAppInformation ruleApp)
                   throws java.io.IOException,
                          IlrArchiveException
        Backs up an IlrRuleAppInformation objects to a RuleApp archive.
        Throws:
        IlrArchiveException - If an error occurred during the backup.
        java.io.IOException - If an input/output exception was raised
        Parameters:
        outputStream - The output stream where the RuleApp archive will be stored. Cannot be null.
        ruleApp - The RuleApp to back up. Cannot be null.
      • read

        public java.util.Set<IlrMutableRuleAppInformation> read(IlrRepositoryFactory repositoryFactory,
                                                       java.util.jar.JarInputStream jarInputStream)
                                                         throws java.io.IOException,
                                                                IlrArchiveException
        Creates the RuleApps and rulesets contained in a RuleApp archive. The entities returned are not linked to a repository.
        Throws:
        IlrArchiveException - If an error occurred during the load.
        java.io.IOException - If an input/output exception was raised
        Parameters:
        repositoryFactory - The repository factory used to create the RuleApp and rulesets. Cannot be null.
        jarInputStream - The RuleApp archive. Cannot be null.
        Returns:
        A Set of IlrMutableRuleAppInformation objects. Cannot be null.

© Copyright IBM Corp. 1987, 2020