How to monitor Adapter application in TEA
book
Article ID: KB0082728
calendar_today
Updated On:
Description
In classical administrator/TRA, customer always use TRA:getDeploymentStatus(Deployment_name, Component_Instance_name) to retrieve the application state, even if the application is stopped. However in TEA, ADF does not provide such a method. Can they implement this using other Hawk methods?
Issue/Introduction
How to monitor Adapter application in TEA
Resolution
Create two rulebases.
Rulebase1:
Use Process:getInstanceCountByCommand(application_name.tra) to calculate application process count.
If count == 0, means application is not running, actions:
Send alert
unload the rulebase2 which is used to monitor application state
start application and any other actions as needed
If count == 1, means application is running:
load the rulebase2 which is used to monitor application state
Rulebase2:
Use adapter:getHostinformation(Name=Application State) to get application information,
If (name == Application State) and (value == RUNNING), then actions...
(name == Application State) and (value == ERROR), then actions...
Sample Rulebase1 is attached (Filename: Rulebase1.hrb).
Attachments
How to monitor Adapter application in TEA
get_app
Feedback
thumb_up
Yes
thumb_down
No