org.glassfish.api.admin
Interface CommandRunner.CommandInvocation

Enclosing interface:
CommandRunner

public static interface CommandRunner.CommandInvocation

CommandInvocation defines a command excecution context like the requested name of the command to execute, the parameters of the command, etc...


Method Summary
 void execute()
          Executes the command and populate the report with the command execution result.
 void execute(AdminCommand command)
          Executes the passed command with this context and populates the report with the execution result.
 CommandRunner.CommandInvocation inbound(Payload.Inbound inbound)
          Sets the data carried with the request (could be an attachment)
 CommandRunner.CommandInvocation outbound(Payload.Outbound outbound)
          Sets the data carried with the response
 CommandRunner.CommandInvocation parameters(CommandParameters params)
          Sets the command parameters as a typed inteface
 CommandRunner.CommandInvocation parameters(ParameterMap params)
          Sets the command parameters as a ParameterMap.
 

Method Detail

parameters

CommandRunner.CommandInvocation parameters(CommandParameters params)
Sets the command parameters as a typed inteface

Parameters:
params - the parameters
Returns:
itself

parameters

CommandRunner.CommandInvocation parameters(ParameterMap params)
Sets the command parameters as a ParameterMap.

Parameters:
params - the parameters
Returns:
itself

inbound

CommandRunner.CommandInvocation inbound(Payload.Inbound inbound)
Sets the data carried with the request (could be an attachment)

Parameters:
inbound - inbound data
Returns:
itself

outbound

CommandRunner.CommandInvocation outbound(Payload.Outbound outbound)
Sets the data carried with the response

Parameters:
outbound - outbound data
Returns:
itself

execute

void execute()
Executes the command and populate the report with the command execution result. Parameters must have been set before invoking this method.


execute

void execute(AdminCommand command)
Executes the passed command with this context and populates the report with the execution result. Parameters must be set before invoking this command.

Parameters:
command - command implementation to execute


Copyright © 2012 GlassFish Community. All Rights Reserved.