congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ComponentMetadataRepo.getComponentMetadata
Code IndexAdd Tabnine to your IDE (free)

How to use
getComponentMetadata
method
in
org.infinispan.factories.components.ComponentMetadataRepo

Best Java code snippets using org.infinispan.factories.components.ComponentMetadataRepo.getComponentMetadata (Showing top 3 results out of 315)

origin: org.infinispan/infinispan-core

public void testRegisterLocalCache() throws Exception {
 EmbeddedCacheManager cm = TestCacheManagerFactory.createCacheManager(false);
 cacheContainers.add(cm);
 cm.start();
 ConfigurationBuilder configuration = config();
 configuration.clustering().cacheMode(CacheMode.LOCAL);
 cm.defineConfiguration("first", configuration.build());
 Cache first = cm.getCache("first");
 ComponentMetadataRepo metadataRepo = cm.getGlobalComponentRegistry().getComponentMetadataRepo();
 ComponentMetadata metadata = metadataRepo.getComponentMetadata(first.getClass());
 ResourceDMBean mbean = new ResourceDMBean(first, metadata.toManageableComponentMetadata());
 Collection<ResourceDMBean> mbeans = singleton(mbean);
 ComponentsJmxRegistration regComponents = buildRegistrator(first);
 regComponents.registerMBeans(mbeans);
 String name = regComponents.getObjectName("Cache").toString();
 ObjectName name1 = new ObjectName(name);
 assert mBeanServer.isRegistered(name1);
 regComponents.unregisterMBeans(mbeans);
 assert !mBeanServer.isRegistered(name1);
 assertCorrectJmxName(name1, first);
}
origin: org.infinispan/infinispan-core

ComponentMetadata metadata = metadataRepo.getComponentMetadata(replicatedCache.getClass());
ResourceDMBean replicatedMBean = new ResourceDMBean(replicatedCache, metadata.toManageableComponentMetadata());
ResourceDMBean localMBean = new ResourceDMBean(localCache, metadata.toManageableComponentMetadata());
origin: org.infinispan/infinispan-core

public void testRegisterReplicatedCache() throws Exception {
 GlobalConfigurationBuilder globalConfiguration = GlobalConfigurationBuilder.defaultClusteredBuilder();
 globalConfiguration.globalJmxStatistics().enable();
 EmbeddedCacheManager cm = TestCacheManagerFactory.createClusteredCacheManager(globalConfiguration, new ConfigurationBuilder());
 cacheContainers.add(cm);
 cm.start();
 ConfigurationBuilder configurationOverride = config();
 configurationOverride.clustering().cacheMode(CacheMode.REPL_SYNC);
 cm.defineConfiguration("first", configurationOverride.build());
 Cache first = cm.getCache("first");
 ComponentMetadataRepo metadataRepo = cm.getGlobalComponentRegistry().getComponentMetadataRepo();
 ComponentMetadata metadata = metadataRepo.getComponentMetadata(first.getClass());
 ResourceDMBean mbean = new ResourceDMBean(first, metadata.toManageableComponentMetadata());
 Collection<ResourceDMBean> mbeans = singleton(mbean);
 ComponentsJmxRegistration regComponents = buildRegistrator(first);
 regComponents.registerMBeans(mbeans);
 String name = regComponents.getObjectName("Cache").toString();
 ObjectName name1 = new ObjectName(name);
 assertCorrectJmxName(name1, first);
 assert mBeanServer.isRegistered(name1);
 regComponents.unregisterMBeans(mbeans);
 assert !mBeanServer.isRegistered(name1);
}
org.infinispan.factories.componentsComponentMetadataRepogetComponentMetadata

Popular methods of ComponentMetadataRepo

  • findComponentMetadata
  • <init>
  • initialize
  • injectFactoryForComponent

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reference (javax.naming)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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