TrueUpdate Manager Specification 0.2

net.java.trueupdate.manager.spec
Interface UpdateContext


public interface UpdateContext

An update context.

Implementations must be thread-safe.

Applications have no need to implement this class and should not do so because it may be subject to future expansion.

Author:
Christian Schlichtherle

Method Summary
 void commitUndeployment()
           
 String currentLocation()
          Returns the current location.
 File diffZip()
          Returns the diff zip file for patching the current artifact.
 void performUndeployment()
           
 void prepareUndeployment()
          Sends a redeployment request to the update agent and waits for a response.
 void rollbackUndeployment()
           
 String updateLocation()
          Returns the update location.
 

Method Detail

commitUndeployment

void commitUndeployment()
                        throws Exception
Throws:
Exception

currentLocation

String currentLocation()
Returns the current location.


diffZip

File diffZip()
Returns the diff zip file for patching the current artifact. The client must not modify or delete this file.


performUndeployment

void performUndeployment()
                         throws Exception
Throws:
Exception

prepareUndeployment

void prepareUndeployment()
                         throws Exception
Sends a redeployment request to the update agent and waits for a response. This handshake ensures that the update agent has processed all progress notices before the redeployment is happening.

Throws:
Exception

rollbackUndeployment

void rollbackUndeployment()
                          throws Exception
Throws:
Exception

updateLocation

String updateLocation()
Returns the update location.


TrueUpdate Manager Specification 0.2

Copyright © 2013 Schlichtherle IT Services. All rights reserved.