if (launchDelegate == null) {
launchDelegate = new AbstractStartJavaServerLaunchDelegate(){
@Override
protected void initiatePolling(IServer server) {
PollThread pollThread = new PollThread(true, getPoller(), pollListener, server);
getControllableBehavior().putSharedData(BaseKarafPoller.KEY_POLLER, pollThread);
pollThread.start();
}
@Override
protected void cancelPolling(IServer server) {
Object o = getControllableBehavior().getSharedData(BaseKarafPoller.KEY_POLLER);
if (o instanceof PollThread) {
PollThread pollThread = (PollThread)o;
pollThread.cancel();
}
}
@Override
protected void logStatus(IServer server, IStatus stat) {