JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1 Administration Guide
search filter icon
search icon

Document Information

Preface

1.  Overview of GlassFish Server Administration

Default Settings and Locations

Configuration Tasks

Administration Tools

Instructions for Administering GlassFish Server

Part I Runtime Administration

2.  General Administration

3.  Administering Domains

4.  Administering the Virtual Machine for the Java Platform

5.  Administering Thread Pools

6.  Administering Web Applications

7.  Administering the Logging Service

8.  Administering the Monitoring Service

9.  Writing and Running JavaScript Clients to Monitor GlassFish Server

Running a Script for Monitoring GlassFish Server

To Run a Script for Monitoring GlassFish Server

Writing Scripts in the JavaScript Language for Monitoring GlassFish Server

Obtaining Information About Events That Provide Monitoring Data

To Obtain a List of Events That Provide Monitoring Data

To Obtain Detailed Information About an Event That Provides Monitoring Data

To Register a Script as a Listener for an Event

To Display Information From a Script

Writing an Event Callback Function

To Generate Counter Statistics

To Generate a Timer Statistic

Sample JavaScript Programs for Monitoring GlassFish Server

JavaScript Monitoring Client API Reference

Object client

Method Summary

Method Detail

Object scriptContainer

Method Summary

Method Detail

10.  Administering Life Cycle Modules

11.  Extending and Updating GlassFish Server

Part II Resources and Services Administration

12.  Administering Database Connectivity

13.  Administering EIS Connectivity

14.  Administering Internet Connectivity

15.  Administering the Object Request Broker (ORB)

16.  Administering the JavaMail Service

17.  Administering the Java Message Service (JMS)

18.  Administering the Java Naming and Directory Interface (JNDI) Service

19.  Administering Transactions

Part III Appendixes

A.  Subcommands for the asadmin Utility

Index

JavaScript Monitoring Client API Reference

The JavaScript Monitoring Client API is a set of pre-instantiated objects that enable scripts to interact with GlassFish Server.

The following topics are addressed here:

Object client

Method Summary

void print(String string)

Prints a string to the standard output on the system where the script is running.

Method Detail

print
void print(
    String string)

Prints a string to the standard output on the system where the script is running.

The parameters of this method are as follows:

string

The string to be printed.

Object scriptContainer

Method Summary

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

Registers a script as a listener for a specific event.

Method Detail

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

Registers a script as a listener for a specific event.

The parameters of this method are as follows:

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.