All Frameworks Class Hierarchy This Framework Next Indexes
BatchInfrastructure Class CATBatStatePubCAA
CATBatStatePubCAA
Usage: you must use this class as is. You should never derive it.
public class CATBatStatePubCAA
Batch state Publishing.
Role: This class allow your batch to publish its state .
It can be used in your batch to send sate messages to the batch monitor.
Method Index
- o
GetCAAStatePub()
- Retrieves the CATBatStatePubCAA singleton.
- o
SetBatchState(int)
- Publish the state of your batch.
- o
SetLicenceState(int)
- Publish the licencing state of your batch.
Methods
o GetCAAStatePub
-
Retrieves the CATBatStatePubCAA singleton. Do not call the constructor.
Role: This method creates and/or retrieves the unique instance of CATBatStatePubCAA.
o SetBatchState
public virtual void SetBatchState( | int | state) = 0 |
-
Publish the state of your batch.
Role: This method allows you to send to tha batch monitor a completion percentage for your batch (from 1 to 100);
This number will be displayed in the batch monitor UI.
- Parameters:
-
- state
- percentage of completion
o SetLicenceState
public virtual void SetLicenceState( | int | OK) = 0 |
-
Publish the licencing state of your batch.
Role: This method allows you to send a notification to the batch monitor containing its licence status
1 means the batch has the licences it needs to run
0 means the taken licences does not allow to run this batch. In this case an error is displayed in the batch monitor.
- Parameters:
-
- OK
- licence state of the batch
This object is included in the file: CATBatStatePubCAA.h
If needed, your Imakefile.mk should include the module: CATBatProtocol