org.yawlfoundation.yawl.engine
Class YNetRunnerRepository

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<YIdentifier,YNetRunner>
          extended by org.yawlfoundation.yawl.engine.YNetRunnerRepository
All Implemented Interfaces:
Serializable, ConcurrentMap<YIdentifier,YNetRunner>, Map<YIdentifier,YNetRunner>

public class YNetRunnerRepository
extends ConcurrentHashMap<YIdentifier,YNetRunner>

A cache of active net runners.

Author:
Michael Adams (split from YWorkItemRepository for v2.2)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
YNetRunnerRepository()
           
 
Method Summary
 YNetRunner add(YNetRunner runner)
           
 YNetRunner add(YNetRunner netRunner, YIdentifier caseID)
           
 void dump(org.apache.log4j.Logger logger)
           
 YNetRunner get(String caseID)
           
 YNetRunner get(YWorkItem workitem)
           
 List<YNetRunner> getAllRunnersForCase(YIdentifier primaryCaseID)
           
 YIdentifier getCaseIdentifier(String caseID)
           
 YNetRunner remove(String caseID)
           
 YNetRunner remove(YIdentifier id)
           
 YNetRunner remove(YNetRunner runner)
           
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

YNetRunnerRepository

public YNetRunnerRepository()
Method Detail

add

public YNetRunner add(YNetRunner runner)

add

public YNetRunner add(YNetRunner netRunner,
                      YIdentifier caseID)

get

public YNetRunner get(String caseID)

get

public YNetRunner get(YWorkItem workitem)

getAllRunnersForCase

public List<YNetRunner> getAllRunnersForCase(YIdentifier primaryCaseID)

getCaseIdentifier

public YIdentifier getCaseIdentifier(String caseID)

remove

public YNetRunner remove(YNetRunner runner)

remove

public YNetRunner remove(YIdentifier id)

remove

public YNetRunner remove(String caseID)

dump

public void dump(org.apache.log4j.Logger logger)


Copyright © 2004-2012 The YAWL Foundation.