java.lang.Object
org.scoja.server.core.ClusterSkeleton
- All Implemented Interfaces:
- Cluster, java.lang.Runnable
- Direct Known Subclasses:
- EventQueue, IterativeCluster
- public abstract class ClusterSkeleton
- extends java.lang.Object
- implements Cluster, java.lang.Runnable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
run |
DEFAULT_THREAD_COUNT
public static final int DEFAULT_THREAD_COUNT
- See Also:
- Constant Field Values
threads
protected final java.util.Set threads
isRunning
protected boolean isRunning
stopRequested
protected boolean stopRequested
maxThreadCount
protected int maxThreadCount
currentThreadCount
protected int currentThreadCount
ClusterSkeleton
protected ClusterSkeleton()
isRunning
public boolean isRunning()
- Specified by:
isRunning in interface Cluster
start
public void start()
- Specified by:
start in interface Cluster
shouldStop
public void shouldStop()
- Specified by:
shouldStop in interface Cluster
stopRequested
public boolean stopRequested()
- Specified by:
stopRequested in interface Cluster
getThreads
public int getThreads()
- Specified by:
getThreads in interface Cluster
setThreads
public void setThreads(int max)
- Specified by:
setThreads in interface Cluster
getCurrentThreads
public int getCurrentThreads()
- Specified by:
getCurrentThreads in interface Cluster
startAllThreads
public void startAllThreads()
startAnotherThread
public void startAnotherThread()
threadStopped
protected void threadStopped()