Examples of Blueprint


Examples of org.apache.ambari.shell.completion.Blueprint

    when(client.doesBlueprintExist("id")).thenReturn(true);
    when(client.getBlueprintMap("id")).thenReturn(map);
    when(context.getFocusValue()).thenReturn("id");
    when(client.getHostNames()).thenReturn(hostNames);

    String result = clusterCommands.buildCluster(new Blueprint("id"));

    verify(client).doesBlueprintExist("id");
    verify(client).getBlueprintMap("id");
    verify(client).getHostGroups("id");
    assertEquals(String.format("%s\n%s", renderSingleMap(hostNames, "HOSTNAME", "STATE"),
View Full Code Here

Examples of org.apache.ambari.shell.completion.Blueprint

    return Blueprint.class.isAssignableFrom(type);
  }

  @Override
  public Blueprint convertFromText(String value, Class<?> targetType, String optionContext) {
    return new Blueprint(value);
  }
View Full Code Here

Examples of org.apache.aries.blueprint.annotation.Blueprint

        Tblueprint tblueprint = new Tblueprint();
       
       
        if (!blueprintClasses.isEmpty()) {
            // use the first annotated blueprint annotation
            Blueprint blueprint = (Blueprint)blueprintClasses.get(0).getAnnotation(Blueprint.class);
            tblueprint.setDefaultActivation(blueprint.defaultActivation());
            tblueprint.setDefaultAvailability(blueprint.defaultAvailability());
            tblueprint.setDefaultTimeout(convertToBigInteger(blueprint.defaultTimeout()));
        }

        List<Object> components = tblueprint.getServiceOrReferenceListOrBean();
       
        // try to process classes that have @ReferenceListener or @RegistrationLister first
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.