Skip to content

Commit

Permalink
Added STARTING state
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 25, 2013
1 parent 28cfb8e commit 7b6ffa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
*/
public enum ContainerStatus
{
STARTED, STOPPED;
STARTING, STARTED, STOPPED;

public boolean isStarting()
{
return this == STARTING;
}

public boolean isStarted()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,6 @@ public void assertNotAlive()
@Override
public ContainerStatus getStatus()
{
return status;
return isStartingAddons() ? ContainerStatus.STARTING : status;
}
}

0 comments on commit 7b6ffa2

Please sign in to comment.