public interface InstantUpgradeManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
InstantUpgradeManager.State
State of the instant upgrade manager.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
INSTANT_UPGRADE
The boolean system property indicating that an instant upgrade is in progress
|
| Modifier and Type | Method and Description |
|---|---|
ServiceResult |
activateInstance()
Called when the new instance is activated in an InstantUp scenario
|
void |
doNowOrWhenInstanceBecomesActive(Runnable runnable,
String description)
Run this function immediately during a normal startup.
|
InstantUpgradeManager.State |
getState() |
boolean |
waitTillFullyStarted(long timeout,
TimeUnit unit)
Waits until the instance is fully started.
|
static final String INSTANT_UPGRADE
void doNowOrWhenInstanceBecomesActive(Runnable runnable, String description)
runnable - the function to rundescription - description of the functionInstantUpgradeManager.State getState()
ServiceResult activateInstance()
boolean waitTillFullyStarted(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - the maximum time to waitunit - the time unit of the timeout argumenttrue if the count reached zero and false
if the waiting time elapsed before the count reached zeroInterruptedException - if the current thread is interrupted
while waiting*Copyright © 2002-2017 Atlassian. All Rights Reserved.