public MBeanServer getMBeanServer(Properties properties) { return ExoContainerContext.getTopContainer().getMBeanServer(); } };
public MBeanServer getMBeanServer(Properties properties) { return ExoContainerContext.getTopContainer().getMBeanServer(); } };
public void jobToBeExecuted(JobExecutionContext context) { String containerName = extractContainerName(context); ExoContainer container = null; if (containerName != null) { if (containerName.equals(JobSchedulerServiceImpl.STANDALONE_CONTAINER_NAME)) { container = ExoContainerContext.getTopContainer(); } else { RootContainer rootContainer = RootContainer.getInstance(); container = (ExoContainer)rootContainer.getComponentInstance(containerName); } } if (container != null) { ExoContainerContext.setCurrentContainer(container); RequestLifeCycle.begin(container); } }
ExoContainer container = ExoContainerContext.getTopContainer(); ManagementContext ctx = null; if (container != null)
public void jobWasExecuted(JobExecutionContext context, JobExecutionException exception) { String containerName = extractContainerName(context); ExoContainer container = null; if (containerName != null) { if (containerName.equals(JobSchedulerServiceImpl.STANDALONE_CONTAINER_NAME)) { container = ExoContainerContext.getTopContainer(); } else { RootContainer rootContainer = RootContainer.getInstance(); container = (ExoContainer)rootContainer.getComponentInstance(containerName); } } if (container != null) { List<ComponentRequestLifecycle> components = container.getComponentInstancesOfType(ComponentRequestLifecycle.class); for (ComponentRequestLifecycle component : components) { component.endRequest(container); } RequestLifeCycle.end(); ExoContainerContext.setCurrentContainer(null); } }
/** * {@inheritDoc} */ @Override protected void _map(CacheKey key, Object value, Collector<Void, Void> collector) { ExoContainer container = ExoContainerContext.getTopContainer(); if (container == null) { LOG.error("The top container could not be found"); return; } DistributedCacheManager dcm = (DistributedCacheManager)container.getComponentInstanceOfType(DistributedCacheManager.class); if (dcm == null) { LOG.error("The DistributedCacheManager could not be found at top container level, please configure it."); return; } Cache<CacheKey, Object> cache = dcm.getCache(CACHE_NAME); ISPNCacheWorkspaceStorageCache.updateTreePath(cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP), ownerId, (ItemData)value, prevRootPath, newRootPath); } }
/** * {@inheritDoc} */ @Override protected void _map(CacheKey<K> key, V value, Collector<Void, Void> collector) { ExoContainer container = ExoContainerContext.getTopContainer(); if (container == null) { LOG.error("The top container could not be found"); return; } DistributedCacheManager dcm = (DistributedCacheManager)container.getComponentInstanceOfType(DistributedCacheManager.class); if (dcm == null) { LOG.error("The DistributedCacheManager could not be found at top container level, please configure it."); return; } Cache<CacheKey<K>, V> cache = dcm.getCache(CACHE_NAME); cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP, Flag.FAIL_SILENTLY).remove(key); } }
/** * {@inheritDoc} */ @Override protected void _map(CacheKey key, Object value, Collector<Void, Void> collector) { ExoContainer container = ExoContainerContext.getTopContainer(); if (container == null) { LOG.error("The top container could not be found"); return; } DistributedCacheManager dcm = (DistributedCacheManager)container.getComponentInstanceOfType(DistributedCacheManager.class); if (dcm == null) { LOG.error("The DistributedCacheManager could not be found at top container level, please configure it."); return; } Cache<CacheKey, Object> cache = dcm.getCache(CACHE_NAME); cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP, Flag.FAIL_SILENTLY).remove(key); } }
ExoContainer container = ExoContainerContext.getTopContainer(); if (container == null)