Calls from the driver
The system Java Driver can be configured to invoke your code by the .ini file. The Driver sectiondescribes the parameters and usage for these .ini fields:
- STARTMETHOD
- STOPMETHOD
- INITMETHOD
- RUNMETHOD
- NOTIFYMETHOD
- TIMEMETHOD
- WRTOKMETHOD
These parameters let you name the methods to whatever you require. An example method signature for each of these methods is provided in the table. The method name and parameter names are up to the developer. The parameter types and order are fixed.
For example, the table describes the STARTMETHOD example as public void doStart(String startarg)
so this is valid
as a STARTMETHOD public void myStartMethod(String
myArgValue)
as well.
doStart
, doStop
, and so on. Tto use
method names other than the default, you must manually update the .ini file. These methods must be implemented in the class specified in the CLASS field of
the .ini file. The FromCloverleafLink.doMsg
method and the ToCloverleafLink.doReply
method shows detailed usage of the RUNMETHOD
interface. This includes:
- How to tell the Java Driver that you have accepted a message.
- That you require a message to retry again later.
- That you require a message to be moved to the error database.
- That you have accepted a message and require sending zero-to-many reply messages back in response.