org.drools.core.util.debug
Class DefaultNodeInfo

java.lang.Object
  extended by org.drools.core.util.debug.DefaultNodeInfo
All Implemented Interfaces:
NodeInfo

public class DefaultNodeInfo
extends Object
implements NodeInfo


Constructor Summary
DefaultNodeInfo(NetworkNode node)
           
 
Method Summary
 void assign(Rule rule)
           
 long getActionQueueSize()
           
 long getCreatedFactHandles()
          Returns the number of infered fact handles created in this node
 long getFactMemorySize()
          Returns the number of facts in the fact memory
 int getId()
          Returns this node ID
 NetworkNode getNode()
          Returns the actual node
 RuleBasePartitionId getPartitionId()
          Returns the partition ID this node belongs to
 Set<Rule> getRules()
          Returns the set of rules this node belongs to
 Collection<? extends NetworkNode> getSinkList()
           
 long getTupleMemorySize()
          Returns the number of tuples in the tuple memory
 boolean isMemoryEnabled()
          Returns true if memory is enabled for this node
 void setActionQueueSize(long size)
           
 void setCreatedFactHandles(long createdFactHandles)
           
 void setFactMemorySize(long rightMemorySize)
           
 void setMemoryEnabled(boolean memoryEnabled)
           
 void setTupleMemorySize(long leftMemorySize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeInfo

public DefaultNodeInfo(NetworkNode node)
Method Detail

assign

public void assign(Rule rule)

getRules

public Set<Rule> getRules()
Description copied from interface: NodeInfo
Returns the set of rules this node belongs to

Specified by:
getRules in interface NodeInfo
Returns:

getId

public int getId()
Description copied from interface: NodeInfo
Returns this node ID

Specified by:
getId in interface NodeInfo
Returns:

getPartitionId

public RuleBasePartitionId getPartitionId()
Description copied from interface: NodeInfo
Returns the partition ID this node belongs to

Specified by:
getPartitionId in interface NodeInfo
Returns:

getTupleMemorySize

public long getTupleMemorySize()
Description copied from interface: NodeInfo
Returns the number of tuples in the tuple memory

Specified by:
getTupleMemorySize in interface NodeInfo
Returns:

setTupleMemorySize

public void setTupleMemorySize(long leftMemorySize)

getFactMemorySize

public long getFactMemorySize()
Description copied from interface: NodeInfo
Returns the number of facts in the fact memory

Specified by:
getFactMemorySize in interface NodeInfo
Returns:

setFactMemorySize

public void setFactMemorySize(long rightMemorySize)

getCreatedFactHandles

public long getCreatedFactHandles()
Description copied from interface: NodeInfo
Returns the number of infered fact handles created in this node

Specified by:
getCreatedFactHandles in interface NodeInfo
Returns:

setCreatedFactHandles

public void setCreatedFactHandles(long createdFactHandles)

getActionQueueSize

public long getActionQueueSize()

setActionQueueSize

public void setActionQueueSize(long size)

getNode

public NetworkNode getNode()
Description copied from interface: NodeInfo
Returns the actual node

Specified by:
getNode in interface NodeInfo
Returns:

isMemoryEnabled

public boolean isMemoryEnabled()
Description copied from interface: NodeInfo
Returns true if memory is enabled for this node

Specified by:
isMemoryEnabled in interface NodeInfo
Returns:

setMemoryEnabled

public void setMemoryEnabled(boolean memoryEnabled)

getSinkList

public Collection<? extends NetworkNode> getSinkList()
Specified by:
getSinkList in interface NodeInfo


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