public EPDeployment deploy(EPCompiled compiled) throws EPDeployException { return deploy(compiled, new DeploymentOptions()); }
private void recursiveUndeploy(int index, String[] deployments, DependencyGraph graph, Set<String> undeployed, UndeploymentOptions options) throws EPUndeployException { Collection<Integer> dependencies = graph.getDependenciesForStream(index); for (int dependency : dependencies) { recursiveUndeploy(dependency, deployments, graph, undeployed, options); } String next = deployments[index]; if (!undeployed.add(next)) { return; } undeploy(next, options); }
public void undeployAll() throws EPUndeployException { undeployAllInternal(null); }
public void undeploy(String deploymentId) throws EPUndeployException { undeployRemoveInternal(deploymentId, null); }
private void dispatchOnDeploymentEvent(DeploymentInternal deployed) { CopyOnWriteArrayList<DeploymentStateListener> listeners = services.getDeploymentLifecycleService().getListeners(); if (listeners.isEmpty()) { return; } EPStatement[] stmts = deployed.getStatements(); DeploymentStateEventDeployed event = new DeploymentStateEventDeployed(services.getRuntimeURI(), deployed.getDeploymentId(), deployed.getModuleProvider().getModuleName(), stmts); for (DeploymentStateListener listener : listeners) { try { listener.onDeployment(event); } catch (Throwable t) { handleDeploymentEventListenerException("on-deployment", t); } } }
dispatchOnDeploymentEvent(deployerResult); } finally { options.getDeploymentLockStrategy().release(services.getEventProcessingRWLock());
services.getDeploymentLifecycleService().undeploy(deploymentId); dispatchOnUndeploymentEvent(deployment);
EPDeploymentServiceSPI deploymentService = new EPDeploymentServiceImpl(services, this); EPEventTypeServiceImpl eventTypeService = new EPEventTypeServiceImpl(services); EPContextPartitionService contextPartitionService = new EPContextPartitionServiceImpl(services);
public void undeploy(String deploymentId, UndeploymentOptions options) throws EPUndeployException { undeployRemoveInternal(deploymentId, options); }
private void dispatchOnUndeploymentEvent(DeploymentInternal result) { CopyOnWriteArrayList<DeploymentStateListener> listeners = services.getDeploymentLifecycleService().getListeners(); if (listeners.isEmpty()) { return; } EPStatement[] statements = result.getStatements(); DeploymentStateEventUndeployed event = new DeploymentStateEventUndeployed(services.getRuntimeURI(), result.getDeploymentId(), result.getModuleProvider().getModuleName(), statements); for (DeploymentStateListener listener : listeners) { try { listener.onUndeployment(event); } catch (Throwable t) { handleDeploymentEventListenerException("on-undeployment", t); } } }
undeploy(deployments[0]); return; String[] zeroDependsOn = zero.getDeploymentIdDependencies(); if (zeroDependsOn != null && zeroDependsOn.length > 0) { undeploy(deployments[0]); undeploy(deployments[1]); } else { undeploy(deployments[1]); undeploy(deployments[0]); recursiveUndeploy(rootIndex, deployments, graph, undeployed, options);
public void undeployAll(UndeploymentOptions options) throws EPUndeployException { undeployAllInternal(options); }