Examples of Fabric8Facade


Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getContainer("root");
      assertNotNull("getContainer('root') returned NULL!", container);
     
      assertNotNull("Root container has no web url (null)?!", container.getJMXUrl());   
      System.out.println("Web URL for container 'root' : " + container.getContainerWebURL());
    } catch (IOException ex) {
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getContainer("root");
      assertNotNull("getContainer('root') returned NULL!", container);
     
      System.out.println("Debug port for container 'root' : " + container.getDebugPort());
    } catch (IOException ex) {
      fail(ex.getMessage());
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getContainer("root");
      assertNotNull("getContainer('root') returned NULL!", container);
     
      assertNotNull("Root container isManaged returns null?!", container.isManaged());   
    } catch (IOException ex) {
      fail(ex.getMessage());
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getCurrentContainer();
      assertNotNull("getCurrentContainer() returned NULL!", container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getCurrentContainer();
      assertNotNull("getCurrentContainer() returned NULL!", container);
     
      // TODO: create a new container, start it and check if state is started, delete container
      fabric8.startContainer(container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getCurrentContainer();
      assertNotNull("getCurrentContainer() returned NULL!", container);

      // TODO: create container, start it, check if started, stop it, check if stopped, delete container
      fabric8.stopContainer(container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

    this.node = node;
  }

  @Override
  public void queryLogs(LogContext context, boolean filterChanged) {
    Fabric8Facade fabricService = getFabricService();
    if (fabricService == null) return;
    LogResultsDTO res = fabricService.queryLog(context.getLogFilter());
   
    List<LogEventDTO> logs = res.getLogEvents();
    if (this.node instanceof ContainerNode) {
      // filter container
      String containerId = ((ContainerNode)this.node).getId();
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

            // @Override
            // public void onStateChange(String message) {
            // monitor.subTask(message);
            // }
            // });
            Fabric8Facade fabricService = getFabricService();
            final CreateContainerMetadataDTO[] newAgents;
            newAgents = fabricService.createContainers(args);
            Viewers.async(new Runnable() {

              @Override
              public void run() {
                for (CreateContainerMetadataDTO metadata : newAgents) {
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

            // @Override
            // public void onStateChange(String message) {
            // monitor.subTask(message);
            // }
            // });
            Fabric8Facade fabricService = getFabricService();
            final CreateContainerMetadataDTO[] newAgents;
            newAgents = fabricService.createContainers(args);
            Viewers.async(new Runnable() {

              @Override
              public void run() {
                for (CreateContainerMetadataDTO metadata : newAgents) {
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade

      }
    });
  }

  public Collection<ProfileStatusDTO> getProfileStatuses() {
    Fabric8Facade service = getFabricService();
    if (service == null || !isConnected()) {
      return new ArrayList<ProfileStatusDTO>();
    }
    return service.getFabricStatus().getProfileStatusMap().values();
  }
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.