JTR 5.0 API Documentation

jtr.ant
Class JtrPassive

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Java
              extended by jtr.ant.JtrRun
                  extended by jtr.ant.JtrPassive
All Implemented Interfaces:
java.lang.Cloneable

public class JtrPassive
extends JtrRun

Ant task for running a JTR passive node. Being derived from the Java Ant-task, JtrPassive accepts all the attributes and sub-elements the former task accepts. Moreover it also accepts the following ad-hoc attributes:

  1. host, the name or IP address of the host running the JTR node (required only in EDiT-mode)
  2. registryPort, the TCP port the RMI-registry must be attached to (required only in EDiT-mode)
  3. testGatewayPort, the TCP port the passive-node component in charge of receiving tests must be attached to (required only in EDiT-mode)
  4. policy, a standard Java policy-file (compulsory)
  5. log4j, the relative path to the Log4J configuration file (compulsory)

Since:
5.0
Version:
5.0
Author:
frusso

Field Summary
static java.lang.String PASSIVE_NODE_MAIN_CLASS
           
 
Fields inherited from class jtr.ant.JtrRun
ACTIVE_NODE_MAIN_CLASS
 
Fields inherited from class org.apache.tools.ant.taskdefs.Java
redirector, redirectorElement
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
JtrPassive()
           
 
Method Summary
protected  void readAdHocJtrJvmArgs(java.lang.StringBuilder params)
          Read specific JVM args.
protected  void setMainClass()
          Set the main class.
 void setTestGatewayPort(java.lang.String port)
          Set the TCP port for receiving test configurations.
 
Methods inherited from class jtr.ant.JtrRun
execute, getLog4j, readCommonJtrJvmArgs, setClassLoaderPort, setHost, setJtr, setLog4j, setOutcomeCollectorPort, setPolicy, setRegistryPort
 
Methods inherited from class org.apache.tools.ant.taskdefs.Java
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDir, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASSIVE_NODE_MAIN_CLASS

public static final java.lang.String PASSIVE_NODE_MAIN_CLASS
Constructor Detail

JtrPassive

public JtrPassive()
Method Detail

readAdHocJtrJvmArgs

protected void readAdHocJtrJvmArgs(java.lang.StringBuilder params)
Read specific JVM args.

Overrides:
readAdHocJtrJvmArgs in class JtrRun
Parameters:
params - The JVM args

setMainClass

protected void setMainClass()
Set the main class.

Overrides:
setMainClass in class JtrRun

setTestGatewayPort

public void setTestGatewayPort(java.lang.String port)
Set the TCP port for receiving test configurations.

Parameters:
port - The port to set

The JTR Project is licensed under GPL version 2