public class TerminateProcess extends java.lang.Object implements TerminatorIF
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| CORBAFileServer.Terminator.Command | String | null | The command to be executed during terminator process.
The class uses the java.text.MessageFormat class to format the command line string. {0} the name of the file. {1} the application element id. {2} the instance element id. {3} the parameter coming from client. An example for a simple ant call may be: ant -DCORBAFileServer.Filename="{0}" -F mybuild.xml
|
| CORBAFileServer.Terminator.WaitFor | boolean | true | Use this boolean to instruct to wait for the newly created process. |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TerminateProcess.StreamReader
The reader to read from process stream.
|
| Constructor and Description |
|---|
TerminateProcess() |
| Modifier and Type | Method and Description |
|---|---|
void |
terminateForInstance(AoSession aoSession,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid,
java.lang.String parameter)
This is the method that is directly called by the server, when the client terminates a transaction.
|
static java.lang.Long |
toLong(T_LONGLONG id)
Get long presentation of a T_LONGLONG.
|
public void terminateForInstance(AoSession aoSession, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid, java.lang.String parameter) throws CORBAFileServerException
terminateForInstance in interface TerminatorIFaoSession - The ASAM ODS session.name - the name of the file.aid - the application element id.iid - the instance element id.parameter - the parameter coming from client.
This parameter is directly used as command to create the new process.CORBAFileServerExceptionpublic static java.lang.Long toLong(T_LONGLONG id)
id - a T_LONGLONG structure