Tabnine Logo
RestStoreConfigurationBuilder.path
Code IndexAdd Tabnine to your IDE (free)

How to use
path
method
in
org.infinispan.persistence.rest.configuration.RestStoreConfigurationBuilder

Best Java code snippets using org.infinispan.persistence.rest.configuration.RestStoreConfigurationBuilder.path (Showing top 9 results out of 315)

origin: org.infinispan/infinispan-cachestore-rest

@Override
public RestStoreConfigurationBuilder path(String path) {
 return builder.path(path);
}
origin: org.infinispan/infinispan-cachestore-rest

  @Override
  public void validate() {
   this.connectionPool.validate();
   if (attributes.attribute(HOST).get() == null) {
     throw log.hostNotSpecified();
   }
   String path = attributes.attribute(PATH).get();
   if (!path.endsWith("/")) {
     path(path + "/");
   }
  }
}
origin: org.infinispan/infinispan-cachestore-rest

builder.path(value);
break;
origin: org.infinispan/infinispan-tools

builder.path(value);
break;
origin: org.infinispan.server/infinispan-server-infinispan

builder.path(RestStoreConfigurationResource.PATH.resolveModelAttribute(context, store).asString());
builder.maxContentLength(RestStoreConfigurationResource.MAX_CONTENT_LENGTH.resolveModelAttribute(context, store).asInt());
builder.rawValues(true);
origin: org.infinispan/infinispan-cachestore-rest

protected void configurePersistence(ConfigurationBuilder cb) {
 localCacheManager = TestCacheManagerFactory.createServerModeCacheManager();
 RestServerConfigurationBuilder restServerConfigurationBuilder = new RestServerConfigurationBuilder();
 restServer = new RestServer();
 restServer.start(restServerConfigurationBuilder.build(), localCacheManager);
 cb.persistence().addStore(RestStoreConfigurationBuilder.class)
    .host("localhost")
    .port(restServer.getPort())
    .path("/rest/"+ BasicCacheContainer.DEFAULT_CACHE_NAME)
    .preload(false);
}
origin: org.infinispan/infinispan-cachestore-rest

@Override
protected PersistenceConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder loaders, boolean preload) {
 localCacheManager = TestCacheManagerFactory.createServerModeCacheManager();
 RestServerConfigurationBuilder restServerConfigurationBuilder = new RestServerConfigurationBuilder();
 restServerConfigurationBuilder.port(0);
 restServer = new RestServer();
 restServer.start(restServerConfigurationBuilder.build(), cacheManager);
 loaders.addStore(RestStoreConfigurationBuilder.class)
    .host("localhost")
    .port(restServer.getPort())
    .path("/rest/"+BasicCacheContainer.DEFAULT_CACHE_NAME)
    .preload(preload);
 return loaders;
}
origin: org.infinispan/infinispan-cachestore-rest

@BeforeClass
public void setup() {
 RestServerConfigurationBuilder restServerConfigurationBuilder = new RestServerConfigurationBuilder();
 restServerConfigurationBuilder.port(0);
 ConfigurationBuilder serverBuilder = getSourceServerBuilder();
 sourceContainer = TestCacheManagerFactory.createServerModeCacheManager(serverBuilder);
 sourceServerCache = sourceContainer.getCache();
 sourceServer = new RestServer();
 sourceServer.start(restServerConfigurationBuilder.build(), sourceContainer);
 ConfigurationBuilder targetConfigurationBuilder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
 targetConfigurationBuilder.persistence().addStore(RestStoreConfigurationBuilder.class).host("localhost").port(sourceServer.getPort())
    .path("/rest/" + BasicCacheContainer.DEFAULT_CACHE_NAME).rawValues(true).locking().isolationLevel(IsolationLevel.NONE);
 targetConfigurationBuilder.encoding().key().mediaType(LEGACY_KEY_ENCODING);
 targetContainer = TestCacheManagerFactory.createServerModeCacheManager(targetConfigurationBuilder);
 targetServerCache = targetContainer.getCache();
 targetServer = new RestServer();
 targetServer.start(restServerConfigurationBuilder.build(), targetContainer);
 client = new HttpClient();
}
origin: org.infinispan/infinispan-cachestore-rest

@Override
protected AdvancedLoadWriteStore createStore() throws Exception {
 ConfigurationBuilder localBuilder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
 localBuilder.memory().evictionType(EvictionType.COUNT).size(WRITE_DELETE_BATCH_MAX_ENTRIES).expiration().wakeUpInterval(10L);
 localCacheManager = TestCacheManagerFactory.createServerModeCacheManager(localBuilder);
 localCacheManager.defineConfiguration(REMOTE_CACHE, localCacheManager.getDefaultCacheConfiguration());
 localCacheManager.getCache(REMOTE_CACHE);
 TestingUtil.replaceComponent(localCacheManager, TimeService.class, timeService, true);
 localCacheManager.getCache(REMOTE_CACHE).getAdvancedCache().getComponentRegistry().rewire();
 RestServerConfigurationBuilder restServerConfigurationBuilder = new RestServerConfigurationBuilder();
 restServerConfigurationBuilder.port(0);
 restServer = new RestServer();
 restServer.start(restServerConfigurationBuilder.build(), localCacheManager);
 ConfigurationBuilder builder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
 RestStoreConfigurationBuilder storeConfigurationBuilder = builder.persistence()
    .addStore(RestStoreConfigurationBuilder.class);
 storeConfigurationBuilder.host(restServer.getHost()).port(restServer.getPort()).path("/rest/" + REMOTE_CACHE);
 storeConfigurationBuilder.connectionPool().maxTotalConnections(10).maxConnectionsPerHost(10);
 storeConfigurationBuilder.validate();
 RestStore restStore = new RestStore();
 restStore.init(createContext(builder.build()));
 return restStore;
}
org.infinispan.persistence.rest.configurationRestStoreConfigurationBuilderpath

Popular methods of RestStoreConfigurationBuilder

  • connectionPool
  • host
  • port
  • appendCacheNameToPath
  • rawValues
  • <init>
  • key2StringMapper
  • maxContentLength
  • locking
  • metadataHelper
  • preload
  • validate
  • preload,
  • validate

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Notification (javax.management)
  • JButton (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now