Nuxeo Enterprise Platform 5.4

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_SYSLIB, ENV_TIMESTAMP, PKG_ID, PKG_NAME, PKG_ROOT, PKG_VERSION
 
Constructor Summary
CommandsTask()
           
 
Method Summary
 void addCommand(Command command)
          Add a command to this task
 void doValidate(org.nuxeo.connect.update.ValidationStatus status)
           
 java.util.List<Command> getCommandLog()
          Get the command log.
 java.util.List<Command> getCommands()
          Get the commands to execute
 void initialize(org.nuxeo.connect.update.LocalPackage pkg, boolean restart)
           
 void readLog(java.io.Reader reader)
           
 void writeLog(java.io.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
 

Constructor Detail

CommandsTask

public CommandsTask()
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 java.util.List<Command> getCommands()
Get the commands to execute

Returns:

getCommandLog

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

Returns:

addCommand

public void addCommand(Command command)
Add a command to this task

Parameters:
command -

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(java.io.File file)
              throws org.nuxeo.connect.update.PackageException
Throws:
org.nuxeo.connect.update.PackageException

readLog

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.