com.zeroturnaround.liverebel.api.impl.update
Class UpdateContextImpl

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.update.UpdateContextImpl
All Implemented Interfaces:
PausedUpdate, PausingUpdate, RunningUpdate, UpdateContext

public class UpdateContextImpl
extends Object
implements RunningUpdate, PausingUpdate, PausedUpdate


Constructor Summary
UpdateContextImpl(RestConnection con, JsonParser parser, Long id)
           
UpdateContextImpl(RestConnection con, JsonParser parser, String response)
           
 
Method Summary
 void cancel()
          Cancel this update.
 Long getId()
          Returns the update Id.
 RunningUpdate proceed()
          Proceed with this update.
 void resume()
          Proceed with this update and wait until it's finished.
 void waitFor()
          Wait until the update is finished.
 PausedUpdate waitForPause()
          Wait until the update is paused.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateContextImpl

public UpdateContextImpl(RestConnection con,
                         JsonParser parser,
                         String response)

UpdateContextImpl

public UpdateContextImpl(RestConnection con,
                         JsonParser parser,
                         Long id)
Method Detail

getId

public Long getId()
Description copied from interface: UpdateContext
Returns the update Id.

Specified by:
getId in interface UpdateContext
Returns:
the update Id.

cancel

public void cancel()
Description copied from interface: UpdateContext
Cancel this update.

Specified by:
cancel in interface UpdateContext

waitFor

public void waitFor()
Description copied from interface: RunningUpdate
Wait until the update is finished.

Specified by:
waitFor in interface RunningUpdate

waitForPause

public PausedUpdate waitForPause()
Description copied from interface: PausingUpdate
Wait until the update is paused.

Specified by:
waitForPause in interface PausingUpdate

resume

public void resume()
Description copied from interface: PausedUpdate
Proceed with this update and wait until it's finished.

Specified by:
resume in interface PausedUpdate

proceed

public RunningUpdate proceed()
Description copied from interface: PausedUpdate
Proceed with this update.

Specified by:
proceed in interface PausedUpdate


Copyright © 2012. All Rights Reserved.