public class PhantomWorker extends Object
Modifier and Type | Field and Description |
---|---|
static int |
REXXFILE_NOP
The operation for a REXX file: no operation.
|
static int |
REXXFILE_READ
The operation for a REXX file: open file for read.
|
static int |
REXXFILE_READWRITE
The operation for a REXX file: open file in read+write mode.
|
static int |
REXXFILE_WRITE
The operation for a REXX file: open file for write.
|
Constructor and Description |
---|
PhantomWorker(VirtualSessionManager vSM)
The constructor is called when the virtual session manager is created.
|
Modifier and Type | Method and Description |
---|---|
void |
checkDisposed()
Check if worker has been disposed.
|
REXXFile |
deleteRexxFile(String name)
Deletes an entry in the REXX file table.
|
void |
dispose()
Dispose Phantom worker, set all references to null and releases
any waiting threads.
|
void |
disposeReportGenerator()
Disposes of the report generator.
|
void |
doDisposeRepGen()
Sets the flag indicating that the PhantomWorker should dispose of the ReportGenerator.
|
void |
dump(String text)
Dumps a text string when the API is traced.
|
ClientConnectionData |
getClientConnectionData()
Gets the client connection data.
|
ClientSessionInterface |
getClientSession()
Gets the client session.
|
CodepageConverter |
getCodepageConverter()
Gets the CodepageConverter that is appropriate for writing files with this runtime.
|
Object |
getComponentLockObject()
Gets the lock object for synchronization for Control Components.
|
PhantomHostScreen |
getCurrentHostScreen()
Gets the currently matching host screen.
|
HostSession |
getCurrentHostSession()
Gets the current host session.
|
VirtualRuntime |
getCurrentRuntime()
Gets the current runtime application.
|
HostScreen |
getHostScreen()
Gets the single instance of the host screen.
|
PhantomHostData |
getPhantomHostData()
Gets the host data of the current runtime application.
|
REXXFile |
getRexxFile(String name,
int operation)
Gets a REXX file instance for a name, using a specific file operation.
|
VirtualPanelSession |
getVirtualPanelSession()
Gets the current panel session.
|
VirtualSessionManager |
getVirtualSessionManager()
Gets the virtual session manager.
|
void |
initialize()
Initializes the worker after creation of the host session manager.
|
boolean |
isDisposed()
Checks if it is disposed.
|
boolean |
isMainThread()
Checks if the current thread is the worker thread.
|
boolean |
isTrace()
Checks if the API is being traced or not.
|
boolean |
processNotify(String message)
Notify a waiting thread that is waiting with the processWait method.
|
String |
processWait()
This thread will wait for a notification from another thread.
|
String |
reportHandler(String com,
String p1,
String p2,
String p3,
String p4,
String p5)
Handles the report generator.
|
String |
sendMailHandler(String com,
String p1)
Handle send mail event.
|
public static final int REXXFILE_NOP
public static final int REXXFILE_READ
public static final int REXXFILE_WRITE
public static final int REXXFILE_READWRITE
public PhantomWorker(VirtualSessionManager vSM)
public Object getComponentLockObject()
public void initialize()
public void dispose()
public boolean isDisposed()
public void checkDisposed()
ClientSessionDispose
is thrown.public VirtualSessionManager getVirtualSessionManager()
public VirtualPanelSession getVirtualPanelSession()
public ClientConnectionData getClientConnectionData()
public HostSession getCurrentHostSession()
public HostScreen getHostScreen()
public ClientSessionInterface getClientSession()
public VirtualRuntime getCurrentRuntime()
public PhantomHostScreen getCurrentHostScreen()
public PhantomHostData getPhantomHostData()
public REXXFile getRexxFile(String name, int operation)
The operations are:
- REXXFILE_NOP
- REXXFILE_READ
- REXXFILE_WRITE
- REXXFILE_READWRITE
deleteRexxFile(java.lang.String)
public REXXFile deleteRexxFile(String name)
getRexxFile(java.lang.String, int)
public boolean isMainThread()
public boolean isTrace()
ClientConnectionData.doAPIVerboseTrace()
.public void dump(String text)
public String processWait()
processNotify(java.lang.String)
public boolean processNotify(String message)
processWait()
public String reportHandler(String com, String p1, String p2, String p3, String p4, String p5)
com
- The report command.p1
- The first parameter for the command, might be an empty String.p2
- The first parameter for the command, might be an empty String.p3
- The first parameter for the command, might be an empty String.p4
- The first parameter for the command, might be an empty String.p5
- The first parameter for the command, might be an empty String.public void disposeReportGenerator()
public void doDisposeRepGen()
public CodepageConverter getCodepageConverter()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.