Sun GlassFish Enterprise Manager Monitoring Scripting Client 3.0 Installation and Quick Start Guide

Method Detail

registerListener

void registerListener (
    String event-id, 
    String[] params, 
    String callback)

Registers a script as a listener for a specific event.

Parameters

event-id

The event identifier (ID) of the event for which the script is to listen.

params

An array of the event parameters to pass to the event callback function that is called when the event is received.

callback

The event callback function that is called when the event is received.