|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |
TIBCO Hawk plug-in is a type of Hawk micro agent that resides with the process space of a Hawk Agent. Such Hawk plug-ins are used to communicate with a host of third party applications using their specific protocols and allow them to be monitored and managed within the Hawk subsystem.However, one can always write a custom Hawk plug-in to suit specific needs, using the set of available Hawk API methods.Hawk is an extensible product and additional monitoring capabilities can be added by creating plug-ins to it. Every plug-in requires a .hma file, which is a HMA configuration file, and a .jar file, which is a Java implementation of various methods you want to expose via the Hawk subsystem. Follow the below steps to create a plug-in:
1. Create the .hma file.
− Most important constituent of this .hma file is the main/startup class of the plug-in implementation. That is to be mentioned under the <classname> tag. For example:
− You can also specify some optional arguments that you would expect the users to configure externally without the need to change plug-in implementation. Such optional arguments should be mentioned under the <argmuents> tag. For example:
− Absolute path of the implementation .jar files and all the required third party libraries should be mentioned under <classpath> tag. For example:
2. If you have more than one Hawk plug-ins, please make sure that all .hma files are present in the CONFIG_FOLDER/plugin subfolder.
3.
4. Ensure that you have created the implementation .jar file in the same folder that is specified in the <classpath> tag within the .hma file.You should now be able to view your custom plug-in microagent and corresponding methods in Hawk WebConsole and Hawk Display.
|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |