コード例 #1
0
  @Setup
  public void setUp(TestContext testContext) {
    hazelcastInstance = testContext.getTargetInstance();
    HazelcastInstance targetInstance = testContext.getTargetInstance();
    map = targetInstance.getDistributedObject(SyntheticMapService.SERVICE_NAME, "map-" + basename);

    operationSelectorBuilder
        .addOperation(Operation.PUT, putProb)
        .addDefaultOperation(Operation.GET);
  }
コード例 #2
0
 public HazelcastClientCacheManager(
     HazelcastClientCachingProvider cachingProvider,
     HazelcastInstance hazelcastInstance,
     URI uri,
     ClassLoader classLoader,
     Properties properties) {
   super(cachingProvider, uri, classLoader, properties);
   if (hazelcastInstance == null) {
     throw new NullPointerException("hazelcastInstance missing");
   }
   this.hazelcastInstance = hazelcastInstance;
   final ClientCacheDistributedObject setupRef =
       hazelcastInstance.getDistributedObject(CacheService.SERVICE_NAME, "setupRef");
   this.clientContext = setupRef.getClientContext();
   logger = Logger.getLogger(getClass());
 }