Package org.platformlayer

Examples of org.platformlayer.Filter


    }
  }

  @Override
  public List<Machine> getMachines(boolean required) throws OpsException {
    Filter parentFilter = TagFilter.byTag(Tag.buildParentTag(model.getKey()));

    List<Machine> machines = Lists.newArrayList();

    for (SolrServer server : platformLayer.listItems(SolrServer.class, parentFilter)) {
      Machine machine = instances.getMachine(server, required);
View Full Code Here


  @Override
  public List<ItemBase> listChildrenTyped(PlatformLayerKey parentKey, boolean includeDeleted) throws OpsException {
    parentKey = resolveKey(parentKey);

    Tag parentTag = Tag.buildParentTag(parentKey);
    Filter filter = TagFilter.byTag(parentTag);
    if (!includeDeleted) {
      filter = StateFilter.excludeDeleted(filter);
    }
    List<ItemBase> items = itemService.listAll(auth, filter);
    return items;
View Full Code Here

  @Inject
  PlatformLayerHelpers platformLayer;

  public PersistentInstance findPersistentInstance(Tag tag) throws OpsException {
    Filter filter = TagFilter.byTag(tag);
    filter = StateFilter.excludeDeleted(filter);

    List<PersistentInstance> instances = Lists.newArrayList(platformLayer.listItems(PersistentInstance.class,
        filter));
    if (instances.size() == 0) {
View Full Code Here

    return new ZookeeperResponse(execution.getStdOut());
  }

  public List<ZookeeperServer> getServers(ZookeeperCluster model) throws OpsException {
    Filter parentFilter = TagFilter.byTag(Tag.buildParentTag(model.getKey()));
    return Lists.newArrayList(platformLayer.listItems(ZookeeperServer.class, parentFilter));
  }
View Full Code Here

            }
          }
          if (uniqueTag == null) {
            throw new IllegalArgumentException("Could not find unique tag");
          }
          Filter filter = TagFilter.byTag(uniqueTag);
          filter = StateFilter.excludeDeleted(filter);

          existing = null;
          List<T> existingList = repository.findAll(modelClass, itemKey.getProject(), fetchTags,
              secretProvider, filter);
View Full Code Here

      throws OpsException, RepositoryException {
    boolean fetchTags = true;
    ItemBase item = getManagedItem(fetchTags);

    Tag parentTag = Tag.buildParentTag(item.getKey());
    Filter filter = TagFilter.byTag(parentTag);

    if (!includeDeleted) {
      filter = StateFilter.excludeDeleted(filter);
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.Filter

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.