public final boolean start ( ) { if ( running || booting || stopping || terminated ) { // do nothing if this instance is not stopped return false ; } else { // mark this instance started booting = true ; running = true ; onStarted ( ) ; return true ; } }
Start a stopped mock ec2 instance .