com.ibm.websphere.ant.tasks

Class ServerControl

  1. java.lang.Object
  2. extended byTask
  3. extended bycom.ibm.websphere.ant.tasks.ServerControl
Direct known subclasses:
ServerStatus, StartServer, StopServer

  1. public abstract class ServerControl
  2. extends Task
ServerControl is the abstract base class of StartServer, StopServer, and ServerStatus. It encapsulates common functionality used by those three tasks. This is not a task itself and it cannot be instantiated.

Constructor Summary

Constructor and Description
ServerControl()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. void
addAdditionalArgs(java.util.ArrayList<java.lang.String> args)
  1. abstract
  2. void
addJvmArgs(Java jvm)
  1. void
execute()
  1. abstract
  2. java.lang.String
getMainClass()
  1. abstract
  2. java.lang.String
getTaskName()
  1. boolean
isDebug()
  1. void
runScript(java.lang.String wasHome,java.lang.String scriptName,java.lang.String[] parms,org.apache.tools.ant.Project project,boolean failonerror)
  1. void
setDebug(boolean debug)
  1. void
setFailonerror(boolean failonerror)
Sets the failonerror.
  1. void
setFileEncoding(java.lang.String fileEncoding)
  1. void
setJvmMaxMemory(java.lang.String jvmMaxMemory)
Sets the jvmMaxMemory.
  1. void
setLogFile(java.lang.String logFile)
Sets the logFile.
  1. void
setNoWait(boolean noWait)
Sets the noWait.
  1. void
setPassword(java.lang.String password)
Sets the password.
  1. void
setProfileName(java.lang.String string)
Sets the server profile name.
  1. void
setQuiet(boolean quiet)
Sets the quiet.
  1. void
setReplaceLog(boolean replaceLog)
Sets the replaceLog.
  1. void
setServer(java.lang.String server)
Sets the server.
  1. void
setStatusPort(java.lang.String statusPort)
Sets the statusPort.
  1. void
setTimeout(java.lang.String timeout)
Sets the timeout.
  1. void
setTrace(boolean trace)
Sets the trace.
  1. void
setUsername(java.lang.String username)
Sets the username.
  1. void
setWasHome(java.lang.String wasHome)
Sets the wasHome.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ServerControl

  1. public ServerControl()

Method Detail

execute

  1. public void execute()
  2. throws BuildException
Throws:
BuildException
See Also:
Task#execute()

runScript

  1. public void runScript(java.lang.String wasHome,
  2. java.lang.String scriptName,
  3. java.lang.String[] parms,
  4. org.apache.tools.ant.Project project,
  5. boolean failonerror)

setNoWait

  1. public void setNoWait(boolean noWait)
Sets the noWait.
Parameters:
noWait - The noWait to set

setQuiet

  1. public void setQuiet(boolean quiet)
Sets the quiet.
Parameters:
quiet - The quiet to set

setTrace

  1. public void setTrace(boolean trace)
Sets the trace.
Parameters:
trace - The trace to set

setTimeout

  1. public void setTimeout(java.lang.String timeout)
Sets the timeout.
Parameters:
timeout - The timeout to set

setStatusPort

  1. public void setStatusPort(java.lang.String statusPort)
Sets the statusPort.
Parameters:
statusPort - The statusPort to set

setServer

  1. public void setServer(java.lang.String server)
Sets the server.
Parameters:
server - The server to set

setWasHome

  1. public void setWasHome(java.lang.String wasHome)
Sets the wasHome.
Parameters:
wasHome - The wasHome to set

setFailonerror

  1. public void setFailonerror(boolean failonerror)
Sets the failonerror. Default is false.
Parameters:
failonerror - The failonerror to set

getMainClass

  1. public abstract java.lang.String getMainClass( )

addAdditionalArgs

  1. public abstract void addAdditionalArgs( java.util.ArrayList<java.lang.String> args)

addJvmArgs

  1. public abstract void addJvmArgs( Java jvm)

getTaskName

  1. public abstract java.lang.String getTaskName( )

setLogFile

  1. public void setLogFile(java.lang.String logFile)
Sets the logFile.
Parameters:
logFile - The logFile to set

setPassword

  1. public void setPassword(java.lang.String password)
Sets the password.
Parameters:
password - The password to set

setReplaceLog

  1. public void setReplaceLog(boolean replaceLog)
Sets the replaceLog.
Parameters:
replaceLog - The replaceLog to set

setUsername

  1. public void setUsername(java.lang.String username)
Sets the username.
Parameters:
username - The username to set

setProfileName

  1. public void setProfileName(java.lang.String string)
Sets the server profile name. Zoght IUNITY LI 3982

setJvmMaxMemory

  1. public void setJvmMaxMemory(java.lang.String jvmMaxMemory)
Sets the jvmMaxMemory.
Parameters:
jvmMaxMemory - The JVM MaxMemory to set

setDebug

  1. public void setDebug(boolean debug)
Parameters:
debug -

isDebug

  1. public boolean isDebug()
Returns:

setFileEncoding

  1. public void setFileEncoding(java.lang.String fileEncoding)
Parameters:
fileEncoding - The fileEncoding to set.