Examples of dispose()


Examples of org.drools.grid.service.directory.WhitePages.dispose()

                    }
                    if ( ! node.isDisposed() ) {
                        node.dispose();
                    }
                }
                wp.dispose();
            }
        } catch ( Throwable t ) {
            logger.error( " Grid couldn't unregister all local nodes " + t.getMessage(), t );
        } finally {
            SocketService socketService = get( SocketService.class );
View Full Code Here

Examples of org.drools.persistence.PersistenceContextManager.dispose()

        int sessionInfoId = commandKSession.getId();
       
        // Clean up the session, environment, etc.
        PersistenceContextManager pcm = (PersistenceContextManager) commandKSession.getEnvironment().get(EnvironmentName.PERSISTENCE_CONTEXT_MANAGER);
        commandKSession.dispose();
        pcm.dispose();
        emf.close();
    
        // Reload session from the database
        emf = Persistence.createEntityManagerFactory(DROOLS_PERSISTENCE_UNIT_NAME);
        context.put(ENTITY_MANAGER_FACTORY, emf);
View Full Code Here

Examples of org.drools.persistence.SingleSessionCommandService.dispose()

        service.execute( completeWorkItemCommand );
        ut.commit();

        workItem = handler.getWorkItem();
        assertNull( workItem );
        service.dispose();

        service = new SingleSessionCommandService( sessionId,
                                                   kbase,
                                                   config,
                                                   env );
View Full Code Here

Examples of org.drools.rule.JavaDialectRuntimeData.dispose()

    public void dispose() {
        for ( PackageRegistry pkgRegistry : this.getPackageRegistry().values() ) {
            DialectRuntimeRegistry dialects = pkgRegistry.getPackage().getDialectRuntimeRegistry();
            JavaDialectRuntimeData java = (JavaDialectRuntimeData) dialects.getDialectData( JavaDialect.ID );
            java.dispose();
        }
        this.rootClassLoader.dispose();
        this.getPackageRegistry().clear();
    }
View Full Code Here

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

       
        StatefulKnowledgeSession crmPersistentSession = createSession(kbase);

        crmPersistentSession.startProcess(processId);

        crmPersistentSession.dispose();
    }

    @Test
    public void createProcessStartItDisposeAndLoadItAgain() {
        String processId = "minimalProcess";
View Full Code Here

Examples of org.drools.runtime.StatelessKnowledgeSession.dispose()

            s.fireAllRules();
            System.out.println(fact1.toString());
//      for (Object x : facts) {
//        System.out.println(x);
//      }
            s.dispose();
        }
        ResourceFactory.getResourceChangeNotifierService().stop();
        ResourceFactory.getResourceChangeScannerService().stop();
    }
View Full Code Here

Examples of org.drools.simulation.impl.Simulator.dispose()

    }

    public void runSimulation(long startTimeMillis) {
        Simulator simulator = new Simulator( simulation, startTimeMillis );
        simulator.run();
        simulator.dispose();
    }

}
View Full Code Here

Examples of org.drools.task.service.TaskServiceSession.dispose()

        potentialOwners.add( users.get( "stuart" ) );
        potentialOwners.add( users.get( "dalai" ) );       

        session.addTask( task1, null );
       
        session.dispose();       
        session = taskService.createSession();
       
        Task task2 = session.getTask( task1.getId( ) );      
        assertNotSame( task1,
                       task2 );
View Full Code Here

Examples of org.drools.util.CompositeClassLoader.dispose()

            root.removeClassLoader( sub );
        }

        this.mappedKnowledgeBaseListeners.clear();
        ((AbstractRuleBase) this.ruleBase).dispose();
        root.dispose();
    }

    public static class KnowledgeBaseEventListenerWrapper
        implements
        org.drools.event.RuleBaseEventListener {
View Full Code Here

Examples of org.drools.verifier.Verifier.dispose()

        Collection<Object> subsumptionList = ((VerifierImpl) verifier).getKnowledgeSession().getObjects( new ClassObjectFilter( Subsumption.class ) );

        assertEquals( 9,
                      subsumptionList.size() );

        verifier.dispose();
    }

    @Test
    public void testVerifierLiteralRestrictionRedundancy2() throws Exception {
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.