Version: 5.3.3-ice35-b63

OmeroBlitz API
Home Previous Up Next Index

omero::grid::Process

Overview

[ "ami" ] interface Process

Thin wrapper around a system-level process. Most closely resembles Python's subprocess.Popen class.

Derived Classes and Interfaces

ScriptProcess

Operation Index

poll
Returns the return code of the process, or null if unfinished.
wait
Blocks until poll() would return a non-null return code.
cancel
Signal to the Process that it should terminate.
kill
Terminate the Process immediately.
shutdown
First attempts cancel() several times and finally resorts to kill to force the process to shutdown cleanly.
registerCallback
Add a callback for end-of-life events
unregisterCallback
Remove a callback for end-of-life events

Operations

RInt poll() throws ServerError

Returns the return code of the process, or null if unfinished.

int wait() throws ServerError

Blocks until poll() would return a non-null return code.

bool cancel() throws ServerError

Signal to the Process that it should terminate. This may be done "softly" for a given time period.

bool kill()

Terminate the Process immediately.

void shutdown()

First attempts cancel() several times and finally resorts to kill to force the process to shutdown cleanly. This method doesn't return any value or throw an exception so that it can be called oneway.

void registerCallback(ProcessCallback* cb) throws ServerError

Add a callback for end-of-life events

void unregisterCallback(ProcessCallback* cb) throws ServerError

Remove a callback for end-of-life events


Home Previous Up Next Index