Examples of KarafServerDelegate


Examples of org.fusesource.ide.server.karaf.core.server.KarafServerDelegate

   * @return
   */
  protected boolean connect(IServer server) {
    this.server = server;
   
    KarafServerDelegate del = (KarafServerDelegate)server.loadAdapter(KarafServerDelegate.class, new NullProgressMonitor());
    Map<String, Object> envMap = new HashMap<String, Object>();
    envMap.put("jmx.remote.credentials", new String[] { del.getUserName(), del.getPassword() });
    try {
      String conUrl = KarafUtils.getJMXConnectionURL(server);
      this.url = new JMXServiceURL(conUrl);
      this.jmxc = JMXConnectorFactory.connect(this.url, envMap);
      this.mbsc = this.jmxc.getMBeanServerConnection();  
View Full Code Here

Examples of org.fusesource.ide.server.karaf.core.server.KarafServerDelegate

  @Override
  public Image getImage(Object element) {
    if( element instanceof KarafServerConnection) {
      IServer s = ((KarafServerConnection)element).getServer();
      KarafServerDelegate del = (KarafServerDelegate)s.loadAdapter(KarafServerDelegate.class, new NullProgressMonitor());
      if( del != null ) {
        return ServerUICore.getLabelProvider().getImage(s);
      }
    }
    return null;
View Full Code Here

Examples of org.fusesource.ide.server.karaf.core.server.KarafServerDelegate

    return new BaseKarafPoller();
  }

  @Override
  public IStatus canStart(String launchMode) {
    KarafServerDelegate d = ((KarafServerDelegate)getServer().loadAdapter(KarafServerDelegate.class, null));
    return d == null ? Status.CANCEL_STATUS : d.validate();
  }
View Full Code Here

Examples of org.fusesource.ide.server.karaf.core.server.KarafServerDelegate

      configurator.configure(workingCopy);
    }
  }

  protected ILaunchConfigConfigurator getConfigurator() throws CoreException {
    KarafServerDelegate serverDel = (KarafServerDelegate)getServer().loadAdapter(KarafServerDelegate.class, new NullProgressMonitor());
    if (serverDel != null) {
      ILaunchConfigConfigurator cfg = serverDel.getLaunchConfigurator();
      if (cfg != null) {
        return cfg;
      }
    }
    throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Unable to retrieve a launch configuration for server type " + getServer().getServerType().getId()));
View Full Code Here

Examples of org.fusesource.ide.server.karaf.core.server.KarafServerDelegate

   *
   * @param server
   * @return
   */
  protected boolean connect() {
    KarafServerDelegate del = (KarafServerDelegate)getServer().loadAdapter(KarafServerDelegate.class, new NullProgressMonitor());
    Map<String, Object> envMap = new HashMap<String, Object>();
    envMap.put("jmx.remote.credentials", new String[] { del.getUserName(), del.getPassword() });
    try {
      String conUrl = KarafUtils.getJMXConnectionURL(getServer());
      this.url = new JMXServiceURL(conUrl);
      this.jmxc = JMXConnectorFactory.connect(this.url, envMap);
      this.mbsc = this.jmxc.getMBeanServerConnection();  
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.