JavascriptProbe - Global

Provides methods for using the JavascriptProbe on the MID server.

Use these methods in server scripts to send a probe to the MID server from JavaScript.

JavascriptProbe - addParameter(String name, String value)

Adds a parameter with the specified value to the probe.

Table 1. Parameters
Name Type Description
name String The parameter name
value String The parameter's value
Table 2. Returns
Type Description
void

var jspr = new JavascriptProbe('msserv');
jspr.setName('jsprobe100');
jspr.setSource('jspr_source');
jspr.addParameter('support_feat', 'yes');

JavascriptProbe - create()

Creates the probe for the current MID server, puts it on the output queue, and sets its state to "ready".

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
void

var jspr = new JavascriptProbe('msserv');
jspr.setName('jsprobe100');
jspr.setSource('jspr_source');
jspr.setJavascript('jspr_script');
jspr.create();

JavascriptProbe - JavascriptProbe(String midServer)

Creates an instance of the JavascriptProbe.

Table 5. Parameters
Name Type Description
midServer String The MID server name


    

JavascriptProbe - setJavascript(String script)

Adds a script to the probe.

Table 6. Parameters
Name Type Description
script String The script to add to the probe
Table 7. Returns
Type Description
void

var jspr = new JavascriptProbe('msserv');
jspr.setName('jsprobe100');
jspr.setSource('jspr_source');
jspr.setJavascript('jspr_script');

JavascriptProbe - setName(String name)

Sets the name of the JavascriptProbe

Table 8. Parameters
Name Type Description
name String The name to give the JavascriptProbe.
Table 9. Returns
Type Description
void

var jspr = new JavascriptProbe('msserv');
jspr.setName('jsprobe100');

JavascriptProbe - setSource(String ip)

Sets the source of the probe.

Table 10. Parameters
Name Type Description
ip String The IP address of the target probe.
Table 11. Returns
Type Description
void

var jspr = new JavascriptProbe('msserv');
jspr.setName('jsprobe100');
jspr.setSource('100.100.100.1');