Adobe 38000382 JRun Guide - Page 73
getServersOnHost, invoke, For an example that iterates over the results of
UPC - 718659575946
View all Adobe 38000382 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 73 highlights
getServersOnHost Description Returns a java.util.List of server names on the specified host. Attributes Attribute active id server host oneOnly Description Set to true to return only the names of servers that are currently running. The default is false. (Required.) The variable name of the returned List object. Returns a list of servers on the host on which the specified server is running. For example, if your localhost is running the admin, samples, and default server, and you specify server="default", JRun returns admin and samples in a List. You must specify either a server or a host attribute. Returns a list of all servers on the specified host. You must specify either a server or a host attribute. Set to true to return only the name of the first server in the list. The default is false. Example The following example prints a List of servers on the specified host in a raw format: ... ... For an example that iterates over the results of the getServersOnHost tag, see invoke on page 59. invoke Description Invokes the method on the specified object. You can set parameters using the parameter tag, which must specify a value and, optionally, type. The parameter's name attribute is ignored. Attributes Attribute id type host Description (Required.) The variable name of the returned object. Specifies the class on which the method is invoked. Required if the method returns an object. If only host is specified, then the JRunAdminService is accessed on the first running server detected on the host. If host is specified and service is specified, then the service is accessed on the first running server detected on the host. JMC custom tags reference 59