Examples of create()


Examples of com.gemstone.gemfire.cache.client.ClientCacheFactory.create()

    if (serverPort != 0) {
      ccf.addPoolServer(serverHost, serverPort);
    } else if (locator != null) {
      ccf.addPoolLocator(locator.getHost().getCanonicalHostName(), locator.getPort());
    }
    cache = ccf.create();
  }
 
  @Override
  public int read(String table, String key, Set<String> fields,
      HashMap<String, ByteIterator> result) {

Examples of com.gemstone.gemfire.cache.client.PoolFactory.create()

      poolFactory
          .setSubscriptionMessageTrackingTimeout(subscriptionMessageTrackingTimeout);
      poolFactory.setSubscriptionRedundancy(subscriptionRedundancy);
      poolFactory.setThreadLocalConnections(threadLocalConnections);
    
      pool = poolFactory.create(name);
    }
  }

  public void destroy() throws Exception {
    if (internalPool && pool != null) {

Examples of com.gemstone.gemfire.cache.query.CqAttributesFactory.create()

    try {
      CqAttributesFactory continuousQueryAttributesFactory = new CqAttributesFactory();

      continuousQueryAttributesFactory.addCqListener(new EventDispatcherAdapter(definition.getListener()));

      CqAttributes continuousQueryAttributes = continuousQueryAttributesFactory.create();

      CqQuery cq =  (StringUtils.hasText(definition.getName())
        ? queryService.newCq(definition.getName(), definition.getQuery(), continuousQueryAttributes, definition.isDurable())
        : queryService.newCq(definition.getQuery(), continuousQueryAttributes, definition.isDurable()));

Examples of com.gemstone.gemfire.cache.wan.GatewayReceiverFactory.create()

    if (socketBufferSize != null) {
      gatewayReceiverFactory.setSocketBufferSize(socketBufferSize);
    }

    gatewayReceiver = gatewayReceiverFactory.create();
  }

  public void setGatewayReceiver(final GatewayReceiver gatewayReceiver) {
    this.gatewayReceiver = gatewayReceiver;
  }

Examples of com.gemstone.gemfire.cache.wan.GatewaySenderFactory.create()

      for (GatewayTransportFilter transportFilter : transportFilters) {
        gatewaySenderFactory.addGatewayTransportFilter(transportFilter);
      }
    }

    GatewaySenderWrapper wrapper = new GatewaySenderWrapper(gatewaySenderFactory.create(getName(),
      remoteDistributedSystemId));

        wrapper.setManualStart(manualStart);
        gatewaySender = wrapper;
  }

Examples of com.geodetix.geo.interfaces.GeometryFacadeHome.create()

       
        try {
           
            GeometryFacadeHome geometryFacadeHome= GeometryFacadeUtil.getHome();
           
            GeometryFacade geometryFacade= geometryFacadeHome.create();
           
            Client client = new Client(geometryFacade);
           
            System.out.println("===============================");
            System.out.println("== TEST 1 =====================");

Examples of com.geodetix.geo.interfaces.GeometryLocalHome.create()

    public GeometryValue createGeometry(org.postgis.Geometry geometry, String description)
    throws ApplicationGeoLayerException {
        try {
            GeometryLocalHome geometryHome  = GeometryUtil.getLocalHome();
            GeometryLocal     geometryLocal =
                    geometryHome.create(geometry,description);
           
            return geometryLocal.getGeometryValue();
        } catch (NamingException e) {
            throw new ApplicationGeoLayerException(e);
        } catch (CreateException e) {

Examples of com.github.youtube.vitess.jdbc.bson.VtoccBsonBlockingRpcChannel.Factory.create()

  @Ignore
  public void testWithParentServer() throws Exception {
    Factory channelFactory = Guice.createInjector().getInstance(Factory.class);

    VtoccBsonBlockingRpcChannel channel =
        channelFactory.create(System.getProperty("vtoccServerSpec"));

    Message response = channel.callBlockingMethod("GetSessionId",
        SessionParams.newBuilder().setKeyspace("test_keyspace").setShard("0").build());

    assertNotNull(response);

Examples of com.google.api.gwt.samples.urlshortener.shared.Urlshortener.UrlContext.create()

    // Get a new RequestContext which we will execute.
    UrlContext urlContext = urlShortener.url();

    // Create a new Url instance with the longUrl we want to insert.
    Url url = urlContext.create(Url.class).setLongUrl(longUrl);

    // Fire an insert() request with the Url to insert.
    urlContext.insert(url).fire(new Receiver<Url>() {
      @Override
      public void onSuccess(Url response) {

Examples of com.google.api.gwt.services.calendar.shared.Calendar.EventsContext.create()

  /** Insert a new event for the given calendar ID. */
  private void insertEvent(final String calendarId) {
    String today = DateTimeFormat.getFormat("yyyy-MM-dd").format(new Date());
    EventsContext ctx = calendar.events();
    Event event = ctx.create(Event.class)
        .setSummary("Learn about the Google API GWT client library")
        .setStart(ctx.create(EventDateTime.class).setDateTime(today))
        .setEnd(ctx.create(EventDateTime.class).setDateTime(today));

    // Note that the EventsContext used to insert the Event has to be the same one used to create
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.