com.ibm.websphere.ant.tasks

Class ServerControl

  • java.lang.Object
    • org.apache.tools.ant.ProjectComponent
      • org.apache.tools.ant.Task
        • com.ibm.websphere.ant.tasks.ServerControl
  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    ServerStatus, StartServer, StopServer


    public abstract class ServerControl
    extends org.apache.tools.ant.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.
    • Field Summary

      • 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

      Constructors 
      Constructor and Description
      ServerControl() 
    • Method Summary

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

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, 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
    • Constructor Detail

      • ServerControl

        public ServerControl()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException
        See Also:
        Task.execute()
      • runScript

        public void runScript(java.lang.String wasHome,
                     java.lang.String scriptName,
                     java.lang.String[] parms,
                     org.apache.tools.ant.Project project,
                     boolean failonerror)
      • setNoWait

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

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

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

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

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

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

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

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

        public abstract java.lang.String getMainClass()
      • addAdditionalArgs

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

        public abstract void addJvmArgs(org.apache.tools.ant.taskdefs.Java jvm)
      • getTaskName

        public abstract java.lang.String getTaskName()
        Overrides:
        getTaskName in class org.apache.tools.ant.Task
      • setLogFile

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

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

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

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

        public void setProfileName(java.lang.String string)
        Sets the server profile name. Zoght IUNITY LI 3982
        Parameters:
        profileName - The server profile name to set
      • setJvmMaxMemory

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

        public void setDebug(boolean debug)
        Parameters:
        debug -
      • isDebug

        public boolean isDebug()
        Returns:
      • setFileEncoding

        public void setFileEncoding(java.lang.String fileEncoding)
        Parameters:
        fileEncoding - The fileEncoding to set.
IBM WebSphere Application ServerTM
Release 8.5