com.phenix.pct
Class PCTBgRun

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.phenix.pct.PCT
              extended by com.phenix.pct.PCTBgRun
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PCTBgCompile, PCTBgCRC

public abstract class PCTBgRun
extends PCT

Run a background Progress procedure.

Version:
$Revision$
Author:
Gilles QUERRET

Field Summary
protected  org.apache.tools.ant.types.Path internalPropath
           
protected  File pctLib
           
protected  int plID
           
 
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
PCTBgRun()
          Default constructor
 
Method Summary
 void addOption(PCTRunOption option)
           
 void addOutputParameter(OutputParameter param)
           
 void addParameter(RunParameter param)
           
 void addPCTConnection(PCTConnection dbConn)
           
 void addPCTRunOption(PCTRunOption option)
           
protected  void cleanup()
           
protected abstract  BackgroundWorker createOpenEdgeWorker(Socket socket)
           
 org.apache.tools.ant.types.Path createPropath()
           
 void execute()
          Do the work
 GenericExecuteOptions getOptions()
           
protected  void logMessages(List logs)
           
protected  void preparePropath()
           
 void setBaseDir(File baseDir)
           
 void setBuildException(Throwable exception)
           
 void setCenturyYearOffset(int centuryYearOffset)
           
 void setCompileUnderscore(boolean compUnderscore)
           
 void setCpInternal(String cpInternal)
           
 void setCpStream(String cpStream)
           
 void setDebugPCT(boolean debugPCT)
           
 void setDebugReady(int debugReady)
           
 void setDirSize(int dirSize)
           
 void setFailOnError(boolean failOnError)
           
 void setGraphicalMode(boolean graphMode)
           
 void setIniFile(File iniFile)
           
 void setInputChars(int inputChars)
           
 void setMaximumMemory(int maximumMemory)
           
 void setMsgBufferSize(int msgBufSize)
           
 void setNumDec(String numdec)
           
 void setNumSep(String numsep)
           
 void setNumThreads(int numThreads)
          Number of threads to throw when running task
 void setParameter(String param)
           
 void setParamFile(File pf)
           
 void setPropath(org.apache.tools.ant.types.Path propath)
           
 void setResultProperty(String resultProperty)
           
 void setStackSize(int stackSize)
           
 void setTempDir(File tempDir)
           
 void setToken(int token)
           
 void setTTBufferSize(int ttBufferSize)
           
 
Methods inherited from class com.phenix.pct.PCT
addEnv, checkDlcHome, deleteDirectory, escapeString, extractPL, extractPL, getDlcBin, getDlcHome, getDLCMaintenanceVersion, getDLCMajorVersion, getDLCMinorVersion, getDLCPatchLevel, getDLCRevision, getEnvironment, getExecPath, getFullVersion, getIncludedPL, getJavaFileset, getJavaFileset, getProgressProcedures, getRCodeVersion, getReducedVersion, isSourceCodeUsed, nextRandomInt, setDlcBin, setDlcHome, setDlcJava, setIncludedPL
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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

internalPropath

protected org.apache.tools.ant.types.Path internalPropath

pctLib

protected File pctLib

plID

protected int plID
Constructor Detail

PCTBgRun

public PCTBgRun()
Default constructor

Method Detail

addPCTConnection

public void addPCTConnection(PCTConnection dbConn)

addOption

public void addOption(PCTRunOption option)

addPCTRunOption

public void addPCTRunOption(PCTRunOption option)

addParameter

public void addParameter(RunParameter param)

addOutputParameter

public void addOutputParameter(OutputParameter param)

setParamFile

public void setParamFile(File pf)

setNumSep

public void setNumSep(String numsep)

setNumDec

public void setNumDec(String numdec)

setParameter

public void setParameter(String param)

setDebugPCT

public void setDebugPCT(boolean debugPCT)

setCompileUnderscore

public void setCompileUnderscore(boolean compUnderscore)

setDirSize

public void setDirSize(int dirSize)

setGraphicalMode

public void setGraphicalMode(boolean graphMode)

setIniFile

public void setIniFile(File iniFile)

setFailOnError

public void setFailOnError(boolean failOnError)

setPropath

public void setPropath(org.apache.tools.ant.types.Path propath)

createPropath

public org.apache.tools.ant.types.Path createPropath()

setCpStream

public void setCpStream(String cpStream)

setCpInternal

public void setCpInternal(String cpInternal)

setInputChars

public void setInputChars(int inputChars)

setCenturyYearOffset

public void setCenturyYearOffset(int centuryYearOffset)

setToken

public void setToken(int token)

setMaximumMemory

public void setMaximumMemory(int maximumMemory)

setStackSize

public void setStackSize(int stackSize)

setTTBufferSize

public void setTTBufferSize(int ttBufferSize)

setMsgBufferSize

public void setMsgBufferSize(int msgBufSize)

setDebugReady

public void setDebugReady(int debugReady)

setTempDir

public void setTempDir(File tempDir)

setBaseDir

public void setBaseDir(File baseDir)

setResultProperty

public void setResultProperty(String resultProperty)

setNumThreads

public void setNumThreads(int numThreads)
Number of threads to throw when running task

Parameters:
numThreads - Number of threads

getOptions

public GenericExecuteOptions getOptions()

createOpenEdgeWorker

protected abstract BackgroundWorker createOpenEdgeWorker(Socket socket)

setBuildException

public void setBuildException(Throwable exception)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Do the work

Specified by:
execute in class PCT
Throws:
org.apache.tools.ant.BuildException - Something went wrong

preparePropath

protected void preparePropath()

cleanup

protected void cleanup()

logMessages

protected void logMessages(List logs)


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.