Class RESTAllocate
java.lang.Object
ecmwf.ecpds.mover.service.RESTAllocate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The Class AllocateApplication. -
Constructor Summary
ConstructorsConstructorDescriptionRESTAllocate
(String url, Properties properties) Instantiates a new allocate manager. -
Method Summary
-
Constructor Details
-
RESTAllocate
Instantiates a new allocate manager. At this time the request is sent to the remote site and the outcome is stored in the _json object.- Parameters:
url
- the urlproperties
- the properties- Throws:
IOException
- the IO exception
-
-
Method Details
-
get
Gets the. Execute the javascript command against the _json object (e.g. json.pathspecs[0]) and expect the outcome to be a String.- Specified by:
get
in interfaceAllocateInterface
- Parameters:
command
- the command- Returns:
- the string
- Throws:
ScriptException
- the script exception
-
commit
Commit. Commit. Send the commit request using the url specified. The original _json object is sent within the request.- Specified by:
commit
in interfaceAllocateInterface
- Parameters:
url
- the url- Returns:
- the int
-