|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.concurrent.StageManager
public class StageManager
This class manages all stages that exist within a process. The application registers and de-registers stages with this abstraction. Any component that has the ID associated with a stage can obtain a handle to actual stage.
Field Summary | |
---|---|
static java.lang.String |
mutationStage_
|
static java.lang.String |
readStage_
|
static java.lang.String |
streamStage_
|
Constructor Summary | |
---|---|
StageManager()
|
Method Summary | |
---|---|
static void |
deregisterStage(java.lang.String stageName)
Deregister a stage from StageManager |
static IStage |
getCurrentStage()
Returns the stage that we are currently executing on. |
static IStage |
getStage(java.lang.String stageName)
Retrieve a stage from the StageManager |
static java.util.concurrent.ExecutorService |
getStageInternalThreadPool(java.lang.String stageName)
Retrieve the internal thread pool associated with the specified stage name. |
static long |
getStageTaskCount(java.lang.String stage)
This method gets the number of tasks on the stage's internal queue. |
static void |
registerStage(java.lang.String stageName,
IStage stage)
Register a stage with the StageManager |
static void |
shutdown()
This method shuts down all registered stages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String readStage_
public static final java.lang.String mutationStage_
public static final java.lang.String streamStage_
Constructor Detail |
---|
public StageManager()
Method Detail |
---|
public static void registerStage(java.lang.String stageName, IStage stage)
stageName
- stage name.stage
- stage for the respective message types.public static IStage getCurrentStage()
public static IStage getStage(java.lang.String stageName)
stageName
- name of the stage to be retrieved.public static java.util.concurrent.ExecutorService getStageInternalThreadPool(java.lang.String stageName)
stageName
- name of the stage.public static void deregisterStage(java.lang.String stageName)
stageName
- stage name.public static long getStageTaskCount(java.lang.String stage)
stage
- name of the stage
public static void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |