com.partnersoft.update.app
Class UpdateLogic

java.lang.Object
  extended by com.partnersoft.update.app.UpdateLogic

public class UpdateLogic
extends java.lang.Object

Root of the UpdateApp logic tree. Mostly provides access to more-specific logic classes.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
UpdateLogic(UpdateApp app)
           
 
Method Summary
 void cleanup()
          Clean up the destination filesystem, should only be called after a failure.
 void exit()
          Exit the program.
 UpdateApp getApp()
           
 UpdateFileLogic getFileLogic()
           
 UpdatePackageLogic getPackageLogic()
           
 UpdateRuntimeLogic getRuntimeLogic()
           
 java.lang.String humaneTimestamp()
          Return a human-readable timestamp.
 void initialize()
          Initialize logic state and perform any pre-update tasks.
 void migrate()
          Run the module migration process.
 void update()
          Perform the update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateLogic

public UpdateLogic(UpdateApp app)
Method Detail

initialize

public void initialize()
                throws java.io.IOException
Initialize logic state and perform any pre-update tasks.

Throws:
java.io.IOException

update

public void update()
            throws java.io.IOException
Perform the update. This is a macro method that calls a number of subtasks.

Throws:
java.io.IOException

migrate

public void migrate()
             throws java.io.IOException
Run the module migration process. This is run on the installation's normal platform, as a separate process.

Throws:
java.io.IOException

exit

public void exit()
Exit the program. This will do different things depending on parameters - just stop, prompt the user, restart, etc.


cleanup

public void cleanup()
             throws java.io.IOException
Clean up the destination filesystem, should only be called after a failure.

Throws:
java.io.IOException

humaneTimestamp

public java.lang.String humaneTimestamp()
Return a human-readable timestamp.


getApp

public UpdateApp getApp()

getPackageLogic

public UpdatePackageLogic getPackageLogic()

getFileLogic

public UpdateFileLogic getFileLogic()

getRuntimeLogic

public UpdateRuntimeLogic getRuntimeLogic()