Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.connect.update.impl.task
Class CommandsTask

java.lang.Object
  extended by org.nuxeo.connect.update.impl.task.AbstractTask
      extended by org.nuxeo.connect.update.impl.task.CommandsTask
All Implemented Interfaces:
org.nuxeo.connect.update.task.Task
Direct Known Subclasses:
InstallTask, UninstallTask

public abstract class CommandsTask
extends AbstractTask

A command based task.

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from class org.nuxeo.connect.update.impl.task.AbstractTask
ENV_BUNDLES, ENV_CONFIG, ENV_EAR, ENV_HOME, ENV_HOSTAPP_NAME, ENV_HOSTAPP_VERSION, ENV_LIB, ENV_SERVER_HOME, ENV_SYSLIB, ENV_TEMPLATES, ENV_TIMESTAMP, PKG_ID, PKG_NAME, PKG_ROOT, PKG_VERSION
 
Method Summary
 void addCommand(Command command)
          Adds a command to this task.
 void doValidate(org.nuxeo.connect.update.ValidationStatus status)
           
 List<Command> getCommandLog()
          Gets the command log.
 List<Command> getCommands()
          Gets the commands to execute.
 void initialize(org.nuxeo.connect.update.LocalPackage pkg, boolean restart)
           
 void readLog(Reader reader)
           
 void writeLog(File file)
           
 
Methods inherited from class org.nuxeo.connect.update.impl.task.AbstractTask
getFile, getPackage, isInstallTask, isRestartRequired, rollback, run, setRestartRequired, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public void initialize(org.nuxeo.connect.update.LocalPackage pkg,
                       boolean restart)
                throws org.nuxeo.connect.update.PackageException
Specified by:
initialize in interface org.nuxeo.connect.update.task.Task
Overrides:
initialize in class AbstractTask
Throws:
org.nuxeo.connect.update.PackageException

getCommands

public List<Command> getCommands()
Gets the commands to execute.


getCommandLog

public List<Command> getCommandLog()
Gets the command log. These are the commands ran so far.


addCommand

public void addCommand(Command command)
Adds a command to this task.


doValidate

public void doValidate(org.nuxeo.connect.update.ValidationStatus status)
                throws org.nuxeo.connect.update.PackageException
Specified by:
doValidate in class AbstractTask
Throws:
org.nuxeo.connect.update.PackageException

writeLog

public void writeLog(File file)
              throws org.nuxeo.connect.update.PackageException
Throws:
org.nuxeo.connect.update.PackageException

readLog

public void readLog(Reader reader)
             throws org.nuxeo.connect.update.PackageException
Throws:
org.nuxeo.connect.update.PackageException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.