Examples of dispose()


Examples of org.kie.api.runtime.KieSession.dispose()

    public void stop() {
        LOG.debug("Stopping drools session and removing all rules.");
        final KieSession activeSession = session.getAndSet(null);
        if (activeSession != null) {
            activeSession.dispose();
        }
        if (currentReleaseId != null) {
            kieServices.getRepository().removeKieModule(currentReleaseId);
        }
    }
View Full Code Here

Examples of org.kie.internal.agent.KnowledgeAgent.dispose()

          .getRules().size());
    } finally {
      ResourceFactory.getResourceChangeNotifierService().stop();
      ResourceFactory.getResourceChangeScannerService().stop();
      file.delete();
      kagent.dispose();
    }
  }
 
  /**
   *
 
View Full Code Here

Examples of org.kie.internal.runtime.StatefulKnowledgeSession.dispose()

        rulesFired = ksession.fireAllRules();

        System.out.println( rulesFired );
        assertEquals( 1, rulesFired );

        ksession.dispose();
    }

    @Test
    public void testNPEOnMutableGlobal() throws Exception {
        // BZ-1019473
View Full Code Here

Examples of org.kie.remote.services.rest.query.InternalProcInstQueryHelper.dispose()

        String identityNotNeeded = null;
        InternalProcInstQueryHelper queryHelper = new InternalProcInstQueryHelper(this);
        JaxbQueryProcessInstanceResult result
            = queryHelper.queryTaskOrProcInstAndAssociatedVariables(identityNotNeeded, params, pageInfo, maxNumResults);
        queryHelper.dispose();

        return createCorrectVariant(result, headers);
    }
 
    private static final String[] allowedQueryParams = {
View Full Code Here

Examples of org.kie.remote.services.rest.query.InternalTaskQueryHelper.dispose()

        int maxNumResults = getMaxNumResultsNeeded(pageInfo);

        InternalTaskQueryHelper queryHelper = new InternalTaskQueryHelper(this);
        JaxbQueryTaskResult result
            = queryHelper.queryTaskOrProcInstAndAssociatedVariables(identityProvider.getName(), params, pageInfo, maxNumResults);
        queryHelper.dispose();
       
        return createCorrectVariant(result, headers);
    }

    @GET
View Full Code Here

Examples of org.kie.runtime.KieSession.dispose()

                  processInstance.getId() );

        TestWorkItemHandler handler = TestWorkItemHandler.getInstance();
        WorkItem workItem = handler.getWorkItem();
        assertNotNull( workItem );
        service.dispose();

        final Environment env = (Environment) ctx.getBean( "env" );
        /*Environment env = KnowledgeBaseFactory.newEnvironment();
        env.set( EnvironmentName.ENTITY_MANAGER_FACTORY,
                 ctx.getBean( "myEmf" ) );
View Full Code Here

Examples of org.kie.runtime.StatefulKnowledgeSession.dispose()

            } else {
                return (T) o;
            }
        } finally {
            ((StatefulKnowledgeSessionImpl) ksession).session.endBatchExecution();
            ksession.dispose();
        }
    }

    public void execute(Object object) {
        StatefulKnowledgeSession ksession = newWorkingMemory();
View Full Code Here

Examples of org.kie.services.client.serialization.SerializationProvider.dispose()

        jaxbResponse = jmsProcessJaxbCommandsRequest(cmdsRequest);
       
        // 4. serialize response
        Message msg = serializeResponse(session, msgCorrId, serializationType, serializationProvider, jaxbResponse);

        serializationProvider.dispose();
       
        // 5. send response
        sendResponse(msgCorrId, serializationType, msg);

        if (redelivered) {
View Full Code Here

Examples of org.lilyproject.runtime.rapi.ModuleSource.dispose()

            return new ModuleConfigImpl(moduleDefinition, classLoadingConfig, moduleSource);

        } catch (Throwable e) {
            if (moduleSource != null) {
                try {
                    moduleSource.dispose();
                } catch (Throwable e2) {
                    log.error("Error disposing module source for file " + moduleDefinition.getFile().getAbsolutePath(), e2);
                }
            }
View Full Code Here

Examples of org.locationtech.udig.catalog.IService.dispose()

                                    .hasNext(); ) {
                                IService service = iterator.next();

                                if (service.equals(service)) continue;

                                service.dispose(new SubProgressMonitor(monitor, 10));
                            }
                            monitor.done();
                        }

                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.