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

Examples of org.fusesource.ide.server.karaf.core.server.subsystems.IServerPortController


   */
  private int getPort() {
    try {
      ControllableServerBehavior csb = (ControllableServerBehavior)getServer().loadAdapter(ControllableServerBehavior.class, null);
      if (csb != null) {
        IServerPortController ctrl = (IServerPortController)csb.getController("port");
        return ctrl.findPort(IServerPortController.KEY_SSH_PORT, -1);       
      }     
    } catch (CoreException ex) {
      Activator.getLogger().error(ex);
    }
    return -1;
View Full Code Here


   */
  private int getPort(IServer s) {
    try {
      ControllableServerBehavior csb = (ControllableServerBehavior)s.loadAdapter(ControllableServerBehavior.class, null);
      if (csb != null) {
        IServerPortController ctrl = (IServerPortController)csb.getController("port");
        return ctrl.findPort(IServerPortController.KEY_SSH_PORT, -1);     
      }
    } catch (CoreException ex) {
      Activator.getLogger().error(ex);
    }
    return -1;
View Full Code Here

TOP

Related Classes of org.fusesource.ide.server.karaf.core.server.subsystems.IServerPortController

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.