public PodListBuilder(){ this(new PodList()); } public PodListBuilder( PodListFluent<?> fluent ){
public PodListBuilder(Boolean validationEnabled){ this(new PodList(), validationEnabled); } public PodListBuilder(PodListFluent<?> fluent){
public PodListBuilder(PodListFluent<?> fluent,Boolean validationEnabled){ this(fluent, new PodList(), validationEnabled); } public PodListBuilder(PodListFluent<?> fluent,PodList instance){
public PodListBuilder( PodListFluent<?> fluent ){ this(fluent, new PodList()); } public PodListBuilder( PodListFluent<?> fluent , PodList instance ){
public PodListBuilder(){ this(new PodList()); } public PodListBuilder( PodListFluent<?> fluent ){
public PodListBuilder( PodListFluent<?> fluent ){ this(fluent, new PodList()); } public PodListBuilder( PodListFluent<?> fluent , PodList instance ){
@Override public PodList getPods(String namespace) { PodList answer = new PodList(); answer.setItems(Lists.newArrayList(getInternalPodMap(namespace).values())); return answer; }
@GET @Path("local/pods") @Consumes("application/json") @Override public PodList getLocalPods() { ImmutableMap<String, Installation> installMap = processManager.listInstallationMap(); ImmutableSet<String> keys = installMap.keySet(); List<Pod> pods = new ArrayList<>(); for (String key : keys) { Pod pod = model.getPod(key); if (pod != null) { pods.add(pod); } } PodList answer = new PodList(); answer.setItems(pods); return answer; }
@Override protected PodList listPods() { final PodList podList = new PodList(); podList.setItems(Collections.singletonList(pod)); return podList; }
public PodList build(){ PodList buildable = new PodList(fluent.getApiVersion(),fluent.getItems(),fluent.getKind(),fluent.getMetadata()); validate(buildable); return buildable; }
public PodList build(){ PodList buildable = new PodList(fluent.getApiVersion(),fluent.getItems(),fluent.getKind(),fluent.getMetadata()); validate(buildable); return buildable; }
when(pods.list()).thenReturn(new PodList());