org.apache.hadoop.hbase.coprocessor
Interface BulkLoadObserver
- All Superinterfaces:
- Coprocessor
- All Known Implementing Classes:
- AccessController
@InterfaceAudience.LimitedPrivate(value="Coprocesssor")
@InterfaceStability.Evolving
public interface BulkLoadObserver
- extends Coprocessor
Coprocessors implement this interface to observe and mediate bulk load operations.
prePrepareBulkLoad
void prePrepareBulkLoad(ObserverContext<RegionCoprocessorEnvironment> ctx,
SecureBulkLoadProtos.PrepareBulkLoadRequest request)
throws IOException
- Called as part of SecureBulkLoadEndpoint.prepareBulkLoad() RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
- Parameters:
ctx
- the environment to interact with the framework and master
- Throws:
IOException
preCleanupBulkLoad
void preCleanupBulkLoad(ObserverContext<RegionCoprocessorEnvironment> ctx,
SecureBulkLoadProtos.CleanupBulkLoadRequest request)
throws IOException
- Called as part of SecureBulkLoadEndpoint.cleanupBulkLoad() RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
- Parameters:
ctx
- the environment to interact with the framework and master
- Throws:
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.