@Override public void transition(ContainerImpl container, ContainerEvent event) { ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; List<String> syms = container.pendingResources.remove(rsrcEvent.getResource()); if (null == syms) { LOG.warn("Localized unknown resource " + rsrcEvent.getResource() + " for container " + container.containerId); assert false; // fail container? return; } container.localizedResources.put(rsrcEvent.getLocation(), syms); } }
@Override public void transition(ContainerImpl container, ContainerEvent event) { ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; List<String> syms = container.pendingResources.remove(rsrcEvent.getResource()); if (null == syms) { LOG.warn("Localized unknown resource " + rsrcEvent.getResource() + " for container " + container.containerId); assert false; // fail container? return; } container.localizedResources.put(rsrcEvent.getLocation(), syms); } }
@Override public void transition(ContainerImpl container, ContainerEvent event) { ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; List<String> syms = container.pendingResources.remove(rsrcEvent.getResource()); if (null == syms) { LOG.warn("Localized unknown resource " + rsrcEvent.getResource() + " for container " + container.containerId); assert false; // fail container? return; } container.localizedResources.put(rsrcEvent.getLocation(), syms); } }
(ContainerResourceLocalizedEvent) event; Set<String> links = container.resourceSet.resourceLocalized( rsrcEvent.getResource(), rsrcEvent.getLocation()); if (links == null) { return; } else { container.context.getContainerExecutor() .symLink(rsrcEvent.getLocation().toString(), linkFile); LOG.info("Created symlink: " + linkFile + " -> " + rsrcEvent .getLocation()); rsrcEvent.getLocation()); LOG.error(message, e);
@Override public void transition(ContainerImpl container, ContainerEvent event) { ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; container.resourceSet .resourceLocalized(rsrcEvent.getResource(), rsrcEvent.getLocation()); } }
@SuppressWarnings("unchecked") @Override public ContainerState transition( ContainerImpl container, ContainerEvent event) { ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; container.reInitContext.newResourceSet.resourceLocalized( rsrcEvent.getResource(), rsrcEvent.getLocation()); // Check if all ResourceLocalization has completed if (container.reInitContext.newResourceSet.getPendingResources() .isEmpty()) { // Kill the current container. container.dispatcher.getEventHandler().handle( new ContainersLauncherEvent(container, ContainersLauncherEventType.CLEANUP_CONTAINER_FOR_REINIT)); return ContainerState.REINITIALIZING_AWAITING_KILL; } return ContainerState.REINITIALIZING; } }
ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; LocalResourceRequest resourceRequest = rsrcEvent.getResource(); Path location = rsrcEvent.getLocation(); List<String> syms = container.pendingResources.remove(resourceRequest); if (null == syms) {
ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; LocalResourceRequest resourceRequest = rsrcEvent.getResource(); Path location = rsrcEvent.getLocation(); List<String> syms = container.pendingResources.remove(resourceRequest); if (null == syms) {
ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; LocalResourceRequest resourceRequest = rsrcEvent.getResource(); Path location = rsrcEvent.getLocation(); List<String> syms = container.pendingResources.remove(resourceRequest); if (null == syms) {
ContainerResourceLocalizedEvent rsrcEvent = (ContainerResourceLocalizedEvent) event; LocalResourceRequest resourceRequest = rsrcEvent.getResource(); Path location = rsrcEvent.getLocation(); Set<String> syms = container.resourceSet.resourceLocalized(resourceRequest, location);