org.deegree.services.wps
Class ProcessManager

java.lang.Object
  extended by org.deegree.services.wps.ProcessManager

public class ProcessManager
extends java.lang.Object

Manages the available WPSProcess instances and ProcessProviders for the WPService

Version:
$Revision: $, $Date: $
Author:
Alexander Padberg, Markus Schneider, last edited by: $Author: schneider $
See Also:
WPService

Constructor Summary
ProcessManager(java.io.File processesDir)
          Creates a new ProcessManager instance with the given configuration.
 
Method Summary
static ProcessProvider create(java.net.URL configURL)
          Returns an uninitialized ProcessProvider instance that's created from the specified process manager configuration document.
 WPSProcess getProcess(org.deegree.commons.tom.ows.CodeType id)
          Returns the process with the specified identifier.
 java.util.Map<org.deegree.commons.tom.ows.CodeType,WPSProcess> getProcesses()
          Returns all available processes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessManager

public ProcessManager(java.io.File processesDir)
               throws ServiceInitException
Creates a new ProcessManager instance with the given configuration.

Parameters:
processesDir - directory to be scanned for process provider configuration documents, never null
Throws:
ServiceInitException
Method Detail

create

public static ProcessProvider create(java.net.URL configURL)
                              throws ServiceInitException
Returns an uninitialized ProcessProvider instance that's created from the specified process manager configuration document.

Parameters:
configURL - URL of the configuration document, must not be null
Returns:
corresponding ProcessProvider instance, not yet initialized, never null
Throws:
ServiceInitException

getProcesses

public java.util.Map<org.deegree.commons.tom.ows.CodeType,WPSProcess> getProcesses()
Returns all available processes.

Returns:
available process, may be empty, but never null

getProcess

public WPSProcess getProcess(org.deegree.commons.tom.ows.CodeType id)
Returns the process with the specified identifier.

Parameters:
id - identifier of the process, must not be null
Returns:
process with the specified identifier or null if no such process exists


Copyright © 2011. All Rights Reserved.