Rule Execution Server API

ilog.rules.res.model.archive
Class IlrArchiveManager

java.lang.Object
  extended by ilog.rules.res.model.archive.IlrArchiveManager

public class IlrArchiveManager
extends Object

Allows to export a IlrRuleAppInformation instance or a Set of IlrRuleAppInformation instances to a RuleApp archive, and to load the IlrRuleAppInformation objects contained in the RuleApp archive.


Constructor Summary
IlrArchiveManager()
           
 
Method Summary
 Set<IlrMutableRuleAppInformation> read(IlrRepositoryFactory repositoryFactory, JarInputStream jarInputStream)
          Creates the RuleApps and rulesets containes in a RuleApp archive.
 void write(OutputStream outputStream, IlrMutableRuleAppInformation ruleApp)
          Backs up an IlrRuleAppInformation objects to a RuleApp archive.
 void write(OutputStream outputStream, Set<IlrMutableRuleAppInformation> ruleApps)
          Backs up a Set of IlrRuleAppInformation objects to a RuleApp archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrArchiveManager

public IlrArchiveManager()
Method Detail

write

public void write(OutputStream outputStream,
                  Set<IlrMutableRuleAppInformation> ruleApps)
           throws IOException,
                  IlrArchiveException
Backs up a Set of IlrRuleAppInformation objects to a RuleApp archive.

Throws:
IlrArchiveException - If an error occurred during the backup.
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(OutputStream outputStream,
                  IlrMutableRuleAppInformation ruleApp)
           throws IOException,
                  IlrArchiveException
Backs up an IlrRuleAppInformation objects to a RuleApp archive.

Throws:
IlrArchiveException - If an error occurred during the backup.
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 Set<IlrMutableRuleAppInformation> read(IlrRepositoryFactory repositoryFactory,
                                              JarInputStream jarInputStream)
                                       throws IOException,
                                              IlrArchiveException
Creates the RuleApps and rulesets containes in a RuleApp archive. The entities returned are not linked to a repository.

Throws:
IlrArchiveException - If an error occurred during the load.
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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013