Package org.fusesource.ide.server.karaf.core.poller

Examples of org.fusesource.ide.server.karaf.core.poller.PollThread


   * cancels the polling for the server state
   */
  protected void cancelPolling() {
    Object o = getControllableBehavior().getSharedData(BaseKarafPoller.KEY_POLLER);
    if (o instanceof PollThread) {
      PollThread pollThread = (PollThread)o;
      pollThread.cancel();
   
  }
View Full Code Here


    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) {
View Full Code Here

TOP

Related Classes of org.fusesource.ide.server.karaf.core.poller.PollThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.