org.drools.reteoo
Class PartitionManager

java.lang.Object
  extended by org.drools.reteoo.PartitionManager

public class PartitionManager
extends Object

A manager class for all partition tasks managers. The purpose of this class is to keep the reference to all individual partition task managers and centralise the synchronisation mechanism between the network and the agenda.


Constructor Summary
PartitionManager(InternalWorkingMemory workingMemory)
           
 
Method Summary
 void execute(PartitionTaskManager.PartitionTask task)
           
 PartitionTaskManager getPartitionTaskManager(RuleBasePartitionId partitionId)
           
 void holdTasks()
           
 boolean isOnHold()
           
 void manage(RuleBasePartitionId partitionId)
          Add partition to the list of managed partitions
 void releaseTasks()
           
 void setPool(ExternalExecutorService executorService)
           
 void shutdown()
           
 void waitForPendingTasks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionManager

public PartitionManager(InternalWorkingMemory workingMemory)
Method Detail

manage

public void manage(RuleBasePartitionId partitionId)
Add partition to the list of managed partitions

Parameters:
partitionId -

setPool

public void setPool(ExternalExecutorService executorService)

execute

public void execute(PartitionTaskManager.PartitionTask task)

holdTasks

public void holdTasks()

waitForPendingTasks

public void waitForPendingTasks()

releaseTasks

public void releaseTasks()

shutdown

public void shutdown()

getPartitionTaskManager

public PartitionTaskManager getPartitionTaskManager(RuleBasePartitionId partitionId)

isOnHold

public boolean isOnHold()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.