Tabnine Logo
IgniteInternalCache.localMxBean
Code IndexAdd Tabnine to your IDE (free)

How to use
localMxBean
method
in
org.apache.ignite.internal.processors.cache.IgniteInternalCache

Best Java code snippets using org.apache.ignite.internal.processors.cache.IgniteInternalCache.localMxBean (Showing top 7 results out of 315)

origin: apache/ignite

/** {@inheritDoc} */
@Override public CacheMetricsMXBean localMxBean() {
  return delegate.get().localMxBean();
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public CacheMetricsMXBean localMxBean() {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.localMxBean();
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override protected Void run(VisorCacheResetMetricsTaskArg arg) {
  IgniteInternalCache cache = ignite.cachex(arg.getCacheName());
  if (cache != null)
    cache.localMxBean().clear();
  return null;
}
origin: apache/ignite

/**
 * Cache statistics clear message received.
 *
 * @param msg Message.
 */
private void onCacheStatisticsClear(CacheStatisticsClearMessage msg) {
  assert msg != null;
  if (msg.initial()) {
    EnableStatisticsFuture fut = manageStatisticsFuts.get(msg.requestId());
    if (fut != null && !cacheNames().containsAll(msg.caches())) {
      fut.onDone(new IgniteCheckedException("One or more cache descriptors not found [caches="
        + caches + ']'));
      return;
    }
    for (String cacheName : msg.caches()) {
      IgniteInternalCache<?, ?> cache = ctx.cache().cache(cacheName);
      if (cache != null)
        cache.localMxBean().clear();
      else
        log.warning("Failed to clear cache statistics, cache not found [cacheName="
          + cacheName + ']');
    }
  }
  else {
    EnableStatisticsFuture fut = manageStatisticsFuts.get(msg.requestId());
    if (fut != null)
      fut.onDone();
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public CacheMetricsMXBean localMxBean() {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.localMxBean();
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override protected Void run(VisorCacheResetMetricsTaskArg arg) {
  IgniteInternalCache cache = ignite.cachex(arg.getCacheName());
  if (cache != null)
    cache.localMxBean().clear();
  return null;
}
origin: org.apache.ignite/ignite-core

/**
 * Cache statistics clear message received.
 *
 * @param msg Message.
 */
private void onCacheStatisticsClear(CacheStatisticsClearMessage msg) {
  assert msg != null;
  if (msg.initial()) {
    EnableStatisticsFuture fut = manageStatisticsFuts.get(msg.requestId());
    if (fut != null && !cacheNames().containsAll(msg.caches())) {
      fut.onDone(new IgniteCheckedException("One or more cache descriptors not found [caches="
        + caches + ']'));
      return;
    }
    for (String cacheName : msg.caches()) {
      IgniteInternalCache<?, ?> cache = ctx.cache().cache(cacheName);
      if (cache != null)
        cache.localMxBean().clear();
      else
        log.warning("Failed to clear cache statistics, cache not found [cacheName="
          + cacheName + ']');
    }
  }
  else {
    EnableStatisticsFuture fut = manageStatisticsFuts.get(msg.requestId());
    if (fut != null)
      fut.onDone();
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCachelocalMxBean

Javadoc

Gets local metrics (statistics) for this cache.

Popular methods of IgniteInternalCache

  • context
  • get
    Retrieves value mapped to the specified key from cache. Value will only be returned if its entry pas
  • affinity
    Gets affinity service to provide information about data partitioning and distribution.
  • configuration
    Gets configuration bean for this cache.
  • containsKey
  • getAndPut
    Stores given key-value pair in cache. If filters are provided, then entries will be stored in cache
  • getAndPutIfAbsent
    Stores given key-value pair in cache only if cache had no previous mapping for it. If cache previous
  • invoke
  • invokeAsync
  • put
    Stores given key-value pair in cache. If filters are provided, then entries will be stored in cache
  • size
  • cache
    Gets base cache for this projection.
  • size,
  • cache,
  • clear,
  • clearLocallyAll,
  • isEmpty,
  • isIgfsDataCache,
  • keySet,
  • localEntries,
  • localPeek,
  • lock

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Kernel (java.awt.image)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Vim plugins
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