HBASE-19563 A few hbase-procedure classes missing @InterfaceAudience annotation
This commit is contained in:
parent
55fefd4b5a
commit
6c6a9d2d1c
|
@ -18,6 +18,8 @@
|
|||
|
||||
package org.apache.hadoop.hbase.procedure2;
|
||||
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
/**
|
||||
* Locking for mutual exclusion between procedures. Used only by procedure framework internally.
|
||||
* {@link LockAndQueue} has two purposes:
|
||||
|
@ -42,6 +44,7 @@ package org.apache.hadoop.hbase.procedure2;
|
|||
* <br>
|
||||
* We do not use ReentrantReadWriteLock directly because of its high memory overhead.
|
||||
*/
|
||||
@InterfaceAudience.Private
|
||||
public class LockAndQueue extends ProcedureDeque implements LockStatus {
|
||||
private Procedure<?> exclusiveLockOwnerProcedure = null;
|
||||
private int sharedLock = 0;
|
||||
|
|
|
@ -18,18 +18,28 @@
|
|||
|
||||
package org.apache.hadoop.hbase.procedure2;
|
||||
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
/**
|
||||
* Interface to get status of a Lock without getting access to acquire/release lock.
|
||||
* Currently used in MasterProcedureScheduler where we want to give Queues access to lock's
|
||||
* status for scheduling purposes, but not the ability to acquire/release it.
|
||||
*/
|
||||
@InterfaceAudience.Private
|
||||
public interface LockStatus {
|
||||
boolean isLocked();
|
||||
|
||||
boolean hasExclusiveLock();
|
||||
|
||||
boolean isLockOwner(long procId);
|
||||
|
||||
boolean hasParentLock(final Procedure proc);
|
||||
|
||||
boolean hasLockAccess(final Procedure proc);
|
||||
|
||||
Procedure<?> getExclusiveLockOwnerProcedure();
|
||||
|
||||
long getExclusiveLockProcIdOwner();
|
||||
|
||||
int getSharedLockCount();
|
||||
}
|
||||
}
|
|
@ -20,6 +20,7 @@ package org.apache.hadoop.hbase.procedure2;
|
|||
|
||||
import org.apache.hadoop.hbase.metrics.Counter;
|
||||
import org.apache.hadoop.hbase.metrics.Histogram;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
/**
|
||||
* With this interface, the procedure framework provides means to collect following set of metrics
|
||||
|
@ -32,6 +33,7 @@ import org.apache.hadoop.hbase.metrics.Histogram;
|
|||
*
|
||||
* Please implement this interface to return appropriate metrics.
|
||||
*/
|
||||
@InterfaceAudience.Private
|
||||
public interface ProcedureMetrics {
|
||||
/**
|
||||
* @return Total number of instances submitted for a type of a procedure
|
||||
|
|
|
@ -19,8 +19,11 @@ package org.apache.hadoop.hbase.procedure2;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
import org.apache.hadoop.hbase.shaded.com.google.protobuf.Message;
|
||||
|
||||
@InterfaceAudience.Private
|
||||
public interface ProcedureStateSerializer {
|
||||
void serialize(Message message) throws IOException;
|
||||
|
||||
|
|
|
@ -21,10 +21,12 @@ package org.apache.hadoop.hbase.procedure2.store;
|
|||
import java.io.IOException;
|
||||
|
||||
import org.apache.hadoop.hbase.procedure2.Procedure;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
/**
|
||||
* An In-Memory store that does not keep track of the procedures inserted.
|
||||
*/
|
||||
@InterfaceAudience.Private
|
||||
public class NoopProcedureStore extends ProcedureStoreBase {
|
||||
private int numThreads;
|
||||
|
||||
|
|
|
@ -21,9 +21,12 @@ package org.apache.hadoop.hbase.procedure2.store;
|
|||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
/**
|
||||
* Base class for {@link ProcedureStore}s.
|
||||
*/
|
||||
@InterfaceAudience.Private
|
||||
public abstract class ProcedureStoreBase implements ProcedureStore {
|
||||
private final CopyOnWriteArrayList<ProcedureStoreListener> listeners = new CopyOnWriteArrayList<>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue