Examples of deleteFeed()


Examples of org.apache.ambari.server.controller.ivory.IvoryService.deleteFeed()

    // get all the feeds that pass the predicate check
    Set<Resource> resources = getResources(PropertyHelper.getReadRequest(), predicate);

    for (Resource resource : resources) {
      // delete all the matching feeds with the property values from the request
      service.deleteFeed((String) resource.getPropertyValue(FEED_NAME_PROPERTY_ID));
    }
    return new RequestStatusImpl(null);
  }

  @Override
View Full Code Here

Examples of org.apache.ambari.server.controller.ivory.IvoryService.deleteFeed()

    // set expectations
    expect(service.getFeedNames()).andReturn(feedNames);

    expect(service.getFeed("Feed1")).andReturn(feed1);

    service.deleteFeed("Feed1");

    // replay
    replay(service);

    FeedResourceProvider provider = new FeedResourceProvider(service,
View Full Code Here

Examples of org.apache.lucene.gdata.server.administration.AdminService.deleteFeed()

                if(serviceFactory == null){
                    setError(GDataResponse.SERVER_ERROR,"required component is not available");
                    throw new FeedHandlerException("Can't save feed - ServiceFactory is null");
                }
                service = serviceFactory.getAdminService();
                service.deleteFeed(feed);
            } catch (FeedHandlerException e) {
                LOG.error("Can not delete feed -- "+e.getMessage(),e);
            }catch (ServiceException e) {
                LOG.error("Can not delete feed -- "+e.getMessage(),e);
                setError(e.getErrorCode(),"can not create feed");
View Full Code Here

Examples of org.apache.lucene.gdata.storage.Storage.deleteFeed()

        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        feed.setServiceConfig(conf);
        storage.storeFeed(feed, ACCOUNTNAME);

        storage.deleteFeed(FEEDID);
        container = getContainer();
        Query query = container.query();
        query.constrain(ServerBaseFeed.class);
        query.descend("feed").descend("id").constrain(FEEDID);
        ObjectSet set = query.execute();
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.