com.sun.faban.harness.util
Class DeployTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.sun.faban.harness.util.DeployTask

public class DeployTask
extends org.apache.tools.ant.Task

Ant task for deployment of benchmarks. Usage is as follows:

<deploy url="${faban.url}/deploy" jar="${benchmark.name}.jar"/>

Author:
Akara Sucharitakul

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
DeployTask()
           
 
Method Summary
 void execute()
          Executes the Faban deployment task.
 void setClearConfig(boolean clear)
          Sets whether to clear the configuration or not.
 void setJar(File jarFile)
          Sets the jar file to be deployed.
 void setPassword(String password)
          Sets the password for deployment.
 void setUrl(String target)
          Sets the target URL to the Faban deployment servlet.
 void setUser(String user)
          Sets the user name for deployment.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployTask

public DeployTask()
Method Detail

setUrl

public void setUrl(String target)
Sets the target URL to the Faban deployment servlet.

Parameters:
target - The deployment servlet

setUser

public void setUser(String user)
Sets the user name for deployment. Note that the user/password is not checked if the Faban harness security is turned off.

Parameters:
user - The user name

setPassword

public void setPassword(String password)
Sets the password for deployment. Note that the user/password is not checked if the Faban harness security is turned off.

Parameters:
password - The user's password.

setJar

public void setJar(File jarFile)
Sets the jar file to be deployed.

Parameters:
jarFile - The benchmark jar

setClearConfig

public void setClearConfig(boolean clear)
Sets whether to clear the configuration or not. Defaults to false.

Parameters:
clear - Whether to clear old config files.

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes the Faban deployment task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - If there is an