org.drools.reteoo
Class PartitionManager
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionManager
public PartitionManager(InternalWorkingMemory workingMemory)
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.