return server;
}
@Override
public boolean isTerminated() {
InstanceState instanceState = InstanceState.get(server);
log.debug("isTerminated? State=" + instanceState);
if (instanceState.isTerminated()) {
return true;
}
if (instanceState.isTerminating()) {
// TODO: Not sure if this is right
log.warn("isTerminated mapping isTerminating => isTerminated=true");
return true;
}