public class SimpleRSProcedureManager.SimpleSubprocedure extends Subprocedure
Subprocedure.SubprocedureImplexecutionTimeoutTimer, monitor, rpcs, wakeFrequency| Constructor and Description |
|---|
SimpleSubprocedure(RegionServerServices rss,
ProcedureMember member,
ForeignExceptionDispatcher errorListener,
SimpleRSProcedureManager.SimpleSubprocedurePool taskManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireBarrier()
The implementation of this method should gather and hold required resources (locks, disk
space, etc) to satisfy the Procedures barrier condition.
|
void |
cleanup(Exception e)
Cancel threads if they haven't finished.
|
byte[] |
insideBarrier()
do a log roll.
|
call, cancel, getMemberName, getName, receiveReachedGlobalBarrier, waitForLocallyCompletedpublic SimpleSubprocedure(RegionServerServices rss, ProcedureMember member, ForeignExceptionDispatcher errorListener, SimpleRSProcedureManager.SimpleSubprocedurePool taskManager, String name)
public void acquireBarrier()
throws ForeignException
SubprocedureacquireBarrier in class SubprocedureForeignExceptionpublic byte[] insideBarrier()
throws ForeignException
insideBarrier in class SubprocedureForeignExceptionpublic void cleanup(Exception e)
cleanup in class Subprocedure