/** {@inheritDoc} */ @Override public String toString() { return S.toString(GridDhtPartitionExchangeId.class, this, "nodeId", U.id8(nodeId), "evt", U.gridEventName(evt)); } }
/** * @throws IllegalArgumentException If validation failed. */ public void validate() throws IllegalArgumentException { A.ensure(pageSize >= 1024 && pageSize <= 16 * 1024, "Page size must be between 1kB and 16kB."); A.ensure(U.isPow2(pageSize), "Page size must be a power of 2."); A.ensure(bufferSize >= pageSize * 2, "Buffer to small."); A.ensure(sharedCtx == null || (binaryMetadataFileStoreDir == null && marshallerMappingFileStoreDir == null), "GridCacheSharedContext and binaryMetadataFileStoreDir/" + "marshallerMappingFileStoreDir can't be specified in the same time"); }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(GridUriDeploymentUriParser.class, this); } }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(GridUriDeploymentUnitDescriptor.class, this, "uri", U.hidePassword(uri)); } }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(PartitionEntryHashRecord.class, this, "key", keyStr, "value", valStr, "keyBytes", keyBytes != null ? U.byteArray2HexString(keyBytes) : null, "valueBytes", valBytes != null ? U.byteArray2HexString(valBytes) : null); } }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(EventTypeFuture.class, this, "evtName", U.gridEventName(evtType)); } }
/** {@inheritDoc} */ @Override public void send(Map<? extends ComputeJob, ClusterNode> mappedJobs) { try { A.notNull(mappedJobs, "mappedJobs"); processMappedJobs(mappedJobs); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** {@inheritDoc} */ @Override public int countDown(int val) { A.ensure(val > 0, "val should be positive"); try { return retryTopologySafe(new CountDownCallable(val)); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Clean up working directory. */ private void cleanUpWorkingDir() throws Exception { String workDir = U.defaultWorkDirectory(); U.delete(U.resolveWorkDirectory(workDir, "marshaller", false)); }
/** {@inheritDoc} */ @Override protected RuntimeException convertException(IgniteCheckedException e) { if (e instanceof IgniteFutureCancelledCheckedException || e instanceof IgniteInterruptedCheckedException || e instanceof IgniteFutureTimeoutCheckedException) return U.convertException(e); return CU.convertToCacheException(e); } }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(ServletContextListenerStartup.class, this); } }
/** * Changes the page size. * * Default value is {@link #DFLT_PAGE_SIZE} * * @param pageSize Page size in bytes. */ public MemoryConfiguration setPageSize(int pageSize) { A.ensure(pageSize >= 1024 && pageSize <= 16 * 1024, "Page size must be between 1kB and 16kB."); A.ensure(U.isPow2(pageSize), "Page size must be a power of 2."); this.pageSize = pageSize; return this; }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(S3TimeoutWorker.class, this); } }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(GridUriDeploymentSpringDocument.class, this); } }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(TestFastStopProcessCustomMessageAck.class, this); } }