org.objectweb.jonas.ant.JonasHotDeploymentTool Class Reference

Inherits org.objectweb.jonas.ant.BootstrapTask, and org.objectweb.jonas.ant.HotDeploymentTool.

Inheritance diagram for org.objectweb.jonas.ant.JonasHotDeploymentTool:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.ant.JonasHotDeploymentTool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void validateAttributes () throws BuildException
void setTask (ServerDeploy task)
void deploy () throws BuildException

Protected Member Functions

ServerDeploy getTask ()
boolean isActionValid ()

Detailed Description

Class used to manage deployment on JOnAS (with ant and ServerDeploy task)
Author:
Florent Benoit

Definition at line 37 of file JonasHotDeploymentTool.java.


Member Function Documentation

void org.objectweb.jonas.ant.JonasHotDeploymentTool.deploy  )  throws BuildException
 

Perform the actual deployment. It's up to the subclasses to implement the actual behavior.

Exceptions:
org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.

Implements org.objectweb.jonas.ant.HotDeploymentTool.

Definition at line 117 of file JonasHotDeploymentTool.java.

References org.objectweb.jonas.ant.ServerDeploy.getAction(), org.objectweb.jonas.ant.BootstrapTask.getBootstraptask(), org.objectweb.jonas.ant.BootstrapTask.getServerName(), org.objectweb.jonas.ant.ServerDeploy.getSource(), and org.objectweb.jonas.ant.JonasHotDeploymentTool.getTask().

Here is the call graph for this function:

ServerDeploy org.objectweb.jonas.ant.JonasHotDeploymentTool.getTask  )  [protected]
 

Returns the task field, a ServerDeploy object.

Returns:
An ServerDeploy representing the parent task.

Definition at line 87 of file JonasHotDeploymentTool.java.

Referenced by org.objectweb.jonas.ant.JonasHotDeploymentTool.deploy(), and org.objectweb.jonas.ant.JonasHotDeploymentTool.isActionValid().

boolean org.objectweb.jonas.ant.JonasHotDeploymentTool.isActionValid  )  [protected]
 

Determines if the "action" attribute defines a valid action.

Subclasses should determine if the action passed in is supported by the vendor's deployment tool.

Actions may by "deploy", "delete", etc... It all depends on the tool.

Returns:
true if the "action" attribute is valid, false if not.

Definition at line 98 of file JonasHotDeploymentTool.java.

References org.objectweb.jonas.ant.ServerDeploy.getAction(), and org.objectweb.jonas.ant.JonasHotDeploymentTool.getTask().

Referenced by org.objectweb.jonas.ant.JonasHotDeploymentTool.validateAttributes().

Here is the call graph for this function:

void org.objectweb.jonas.ant.JonasHotDeploymentTool.setTask ServerDeploy  task  ) 
 

Sets the parent task.

Parameters:
task a ServerDeploy object representing the parent task. .attribute ignore="true"

Implements org.objectweb.jonas.ant.HotDeploymentTool.

Definition at line 79 of file JonasHotDeploymentTool.java.

Referenced by org.objectweb.jonas.ant.ServerDeploy.addJonas().

void org.objectweb.jonas.ant.JonasHotDeploymentTool.validateAttributes  )  throws BuildException
 

Validates the passed in attributes. Subclasses should chain to this super-method to insure validation of boilerplate attributes.

Only the "action" attribute is required in the base class. Subclasses should check attributes accordingly.

Exceptions:
org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.

Implements org.objectweb.jonas.ant.HotDeploymentTool.

Definition at line 63 of file JonasHotDeploymentTool.java.

References org.objectweb.jonas.ant.ServerDeploy.getAction(), and org.objectweb.jonas.ant.JonasHotDeploymentTool.isActionValid().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:15 2005 for JOnAS by  doxygen 1.3.9.1