|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.res.model.archive.IlrArchiveManager
public class IlrArchiveManager
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 |
---|
public IlrArchiveManager()
Method Detail |
---|
public void write(OutputStream outputStream, Set<IlrMutableRuleAppInformation> ruleApps) throws IOException, IlrArchiveException
IlrRuleAppInformation
objects to a RuleApp archive.
IlrArchiveException
- If an error occurred during the backup.
IOException
- If an input/output exception was raisedoutputStream
- The output stream where the RuleApp archive will be stored. Cannot be null.ruleApps
- a Set of IlrRuleAppInformation
objects. Cannot be null or empty.public void write(OutputStream outputStream, IlrMutableRuleAppInformation ruleApp) throws IOException, IlrArchiveException
IlrRuleAppInformation
objects to a RuleApp archive.
IlrArchiveException
- If an error occurred during the backup.
IOException
- If an input/output exception was raisedoutputStream
- The output stream where the RuleApp archive will be stored. Cannot be null.ruleApp
- The RuleApp to back up. Cannot be null.public Set<IlrMutableRuleAppInformation> read(IlrRepositoryFactory repositoryFactory, JarInputStream jarInputStream) throws IOException, IlrArchiveException
IlrArchiveException
- If an error occurred during the load.
IOException
- If an input/output exception was raisedrepositoryFactory
- The repository factory used to create the RuleApp and rulesets. Cannot be null.jarInputStream
- The RuleApp archive. Cannot be null.
IlrMutableRuleAppInformation
objects. Cannot be null.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |