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

How to use
DefaultCacheContainerRegistry
in
org.jboss.ha.ispn

Best Java code snippets using org.jboss.ha.ispn.DefaultCacheContainerRegistry (Showing top 7 results out of 315)

origin: org.jboss.cluster/jboss-ha-server-cache-ispn

public SSOClusterManager()
{
 this(DefaultCacheContainerRegistry.getInstance());
}
origin: org.jboss.cluster/jboss-ha-server-ispn

public void stop() throws Exception
{
 singleton.set(null);
 
 for (CacheContainerRegistryEntry entry: this.containers.values())
 {
   this.stop(entry);
 }
 
 this.aliases.clear();
 this.containers.clear();
 this.defaultContainer = null;
}
origin: org.jboss.cluster/jboss-ha-server-ispn

private void start(CacheContainerRegistryEntry entry)
{
 EmbeddedCacheManager container = entry.getContainer();
 container.start();
 container.addListener(this.factory);
 
 String jndiName = entry.getJndiName();
 
 if (jndiName != null)
 {
   try
   {
    logger.info("Binding " + entry.getId() + " cache container to " + jndiName);
    this.bind(jndiName, container);
   }
   catch (NamingException e)
   {
    logger.warn(e.getMessage(), e);
   }
 }
}
origin: org.jboss.cluster/jboss-ha-server-ispn

private void stop(CacheContainerRegistryEntry entry)
{
 String jndiName = entry.getJndiName();
 
 if (jndiName != null)
 {
   try
   {
    logger.info("Unbinding " + entry.getId() + " cache container from " + jndiName);
    this.unbind(jndiName);
   }
   catch (NamingException e)
   {
    logger.warn(e.getMessage(), e);
   }
 }
 
 EmbeddedCacheManager container = entry.getContainer();
 container.removeListener(this.factory);
 container.stop();
}
origin: org.jboss.cluster/jboss-ha-server-ispn

public void start() throws Exception
{
 CacheContainerRegistryConfiguration registry = this.source.getRegistryConfiguration();
 
 for (CacheContainerRegistryConfigurationEntry entry: registry.getEntries())
 {
   this.add(entry);
 }
 CacheContainerRegistryConfigurationEntry defaultEntry = registry.getDefaultEntry();
 
 if (defaultEntry == null)
 {
   defaultEntry = registry.getEntries().get(0);
 }
 
 this.defaultContainer = this.containers.get(defaultEntry.getId()).getContainer();
 
 singleton.compareAndSet(null, this);
}
origin: org.jboss.cluster/jboss-ha-server-ispn

this.start(entry);
origin: org.jboss.cluster/jboss-ha-server-ispn

public void remove(CacheContainerRegistryConfigurationEntry configEntry)
{
 CacheContainerRegistryEntry entry = this.containers.remove(configEntry.getId());
 
 if (entry != null)
 {
   for (String alias: entry.getAliases())
   {
    this.aliases.remove(alias);
   }
      this.stop(entry);
 }
}
org.jboss.ha.ispnDefaultCacheContainerRegistry

Javadoc

Cache container registry that populates itself using a specified factory from configuration from a specified source. All cache containers in the registry are bound to jndi.

Most used methods

  • add
  • bind
  • getInstance
  • start
  • stop
  • unbind

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JComboBox (javax.swing)
  • CodeWhisperer alternatives
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