ILOG JRules

ilog.rules.bres.model.archive
Class IlrArchiveManager

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

public class IlrArchiveManager
extends Object

Allows to export a IlrRuleAppInformation or a Set of IlrRuleAppInformation to a ruleApp archive, and to load IlrRuleAppInformation contain in a ruleApp archive.


Constructor Summary
IlrArchiveManager()
           
 
Method Summary
 Set read(IlrRepositoryFactory repositoryFactory, JarInputStream jarInputStream)
          Create ruleApps and rulesets contain in a ruleApp archive.
 void write(OutputStream outputStream, IlrRuleAppInformation ruleApp)
          Backup an IlrRuleAppInformation to a ruleApp archive.
 void write(OutputStream outputStream, Set ruleApps)
          Backup a Set of IlrRuleAppInformation 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 ruleApps)
           throws IOException,
                  IlrArchiveException
Backup a Set of IlrRuleAppInformation to a ruleApp archive.

Throws:
IlrArchiveException - If an error occured during the backup.
IOException - If an I/O exception has occurred
Parameters:
outputStream - The outputStream where the ruleApp archive will be stored. Cannot be null.
ruleApps - a Set of IlrRuleAppInformation. Cannot be null or empty.

write

public void write(OutputStream outputStream,
                  IlrRuleAppInformation ruleApp)
           throws IOException,
                  IlrArchiveException
Backup an IlrRuleAppInformation to a ruleApp archive.

Throws:
IlrArchiveException - If an error occured during the backup.
IOException - If an I/O exception has occurred
Parameters:
outputStream - The outputStream where the ruleApp archive will be stored. Cannot be null.
ruleApp - The ruleApp to backup. Cannot be null.

read

public Set read(IlrRepositoryFactory repositoryFactory,
                JarInputStream jarInputStream)
         throws IOException,
                IlrArchiveException
Create ruleApps and rulesets contain in a ruleApp archive. Entities returned are not linked to a repository.

Throws:
IlrArchiveException - If an error occured during the load.
IOException - If an I/O exception has occurred
Parameters:
repositoryFactory - The repository factory used to create ruleApp and rulesets. Cannot be null.
jarInputStream - The ruleApp archive. Cannot be null.
Returns:
A Set of IlrMutableRuleAppInformation. Cannot be null.

ILOG JRules