Java CAPS Management and Monitoring APIs

Targets

A target provides the scope of an administrative operation. Directing a command at multiple targets effectively increases the scope of that command. If multiple targets are specified, the success or failure of each target is reported separately. In other words the result of the operation on all targets is not “rolled up” into a summary status. The following table describes the scope of each target type.


Note –

Two of the target option names are constant: “domain” and “server.” They represent an instance of an operator and are replaceable with a name specific to the current template.


Table 1 Target Operations

Target Name 

Scope 

domain

Command is executed against the domain itself. For JBI purposes, this is equivalent to add-to-repository activity. 

server

Command is executed against embedded DAS server instance. 

cluster name 

Command is executed against all instances in a cluster. 

instance name 

Command is executed against a single standalone instance. 

cluster instance name 

Command is executed against the specific instance in a cluster. 


Note –

The samples that are pertinent to this topic, such as AdministrationServiceSample.groovy, are included with the delivery as zipped files.