org.apache.cassandra.db
Class CommitLogExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.apache.cassandra.db.CommitLogExecutorService
- All Implemented Interfaces:
- java.util.concurrent.Executor, java.util.concurrent.ExecutorService, IExecutorMBean, CommitLogExecutorServiceMBean
public class CommitLogExecutorService
- extends java.util.concurrent.AbstractExecutorService
- implements CommitLogExecutorServiceMBean
Methods inherited from class java.util.concurrent.AbstractExecutorService |
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommitLogExecutorService
public CommitLogExecutorService()
getActiveCount
public int getActiveCount()
- Get the current number of running tasks
- Specified by:
getActiveCount
in interface IExecutorMBean
getCompletedTasks
public long getCompletedTasks()
- Get the number of completed tasks
- Specified by:
getCompletedTasks
in interface IExecutorMBean
getPendingTasks
public long getPendingTasks()
- Get the number of tasks waiting to be executed
- Specified by:
getPendingTasks
in interface IExecutorMBean
newTaskFor
protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.lang.Runnable runnable,
T value)
- Overrides:
newTaskFor
in class java.util.concurrent.AbstractExecutorService
newTaskFor
protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.util.concurrent.Callable<T> callable)
- Overrides:
newTaskFor
in class java.util.concurrent.AbstractExecutorService
execute
public void execute(java.lang.Runnable command)
- Specified by:
execute
in interface java.util.concurrent.Executor
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interface java.util.concurrent.ExecutorService
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interface java.util.concurrent.ExecutorService
shutdown
public void shutdown()
- Specified by:
shutdown
in interface java.util.concurrent.ExecutorService
shutdownNow
public java.util.List<java.lang.Runnable> shutdownNow()
- Specified by:
shutdownNow
in interface java.util.concurrent.ExecutorService
awaitTermination
public boolean awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
awaitTermination
in interface java.util.concurrent.ExecutorService
- Throws:
java.lang.InterruptedException
Copyright © 2010 The Apache Software Foundation