public interface ProcessStore
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<javax.xml.namespace.QName> |
deploy(java.io.File deploymentUnitDirectory)
Deploys a process from the filesystem.
|
long |
getCurrentVersion()
Gets the version used by the store for the last deployment.
|
java.util.Collection<java.lang.String> |
getPackages()
Lists the names of all the packages that have been deployed (corresponds
to a directory name on the file system).
|
ProcessConf |
getProcessConfiguration(javax.xml.namespace.QName processId)
Gets all the details of a process configuration (properties, deploy dates, ...)
|
java.util.List<javax.xml.namespace.QName> |
getProcesses()
Get the list of processes known to the store.
|
java.util.List<javax.xml.namespace.QName> |
listProcesses(java.lang.String packageName)
Lists all processe ids in a given package.
|
void |
refreshSchedules(java.lang.String packageName) |
void |
registerListener(ProcessStoreListener psl)
Register a configuration store listener.
|
void |
setProperty(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propName,
org.w3c.dom.Node value) |
void |
setProperty(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propName,
java.lang.String value)
Set a process property.
|
void |
setRetiredPackage(java.lang.String packageName,
boolean retired)
Retires all processes in a given package.
|
void |
setState(javax.xml.namespace.QName pid,
ProcessState state)
Marks a process as active / retired or disabled
|
java.util.Collection<javax.xml.namespace.QName> |
undeploy(java.io.File file)
Undeploys a package.
|
void |
unregisterListener(ProcessStoreListener psl)
Unregister a configuration store listener.
|
java.util.Collection<javax.xml.namespace.QName> deploy(java.io.File deploymentUnitDirectory)
deploymentUnitDirectory - directory containing all deployment filesjava.util.Collection<javax.xml.namespace.QName> undeploy(java.io.File file)
file - packagejava.util.Collection<java.lang.String> getPackages()
java.util.List<javax.xml.namespace.QName> listProcesses(java.lang.String packageName)
java.util.List<javax.xml.namespace.QName> getProcesses()
ProcessConf getProcessConfiguration(javax.xml.namespace.QName processId)
processId - void registerListener(ProcessStoreListener psl)
psl - ProcessStoreListenervoid unregisterListener(ProcessStoreListener psl)
psl - ProcessStoreListenervoid setProperty(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propName,
java.lang.String value)
pid - propName - value - void setProperty(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propName,
org.w3c.dom.Node value)
void setState(javax.xml.namespace.QName pid,
ProcessState state)
pid - state - true for active, false for inactivevoid setRetiredPackage(java.lang.String packageName,
boolean retired)
packageName - retired - long getCurrentVersion()
void refreshSchedules(java.lang.String packageName)