DelegateHarnessExecutor Class — netty Architecture
Architecture documentation for the DelegateHarnessExecutor class in AbstractSharedExecutorMicrobenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d421d17a_bf1e_40f2_4b05_2a7522a2ba63["DelegateHarnessExecutor"] f3161f47_05ac_b59c_e5de_4f1df8377ec9["AbstractSharedExecutorMicrobenchmark.java"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|defined in| f3161f47_05ac_b59c_e5de_4f1df8377ec9 fa8c4979_027d_9cc7_2128_ae56cd16ee9e["DelegateHarnessExecutor()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| fa8c4979_027d_9cc7_2128_ae56cd16ee9e 89d995c8_5820_2e6a_92ea_6eb37739db54["executor()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 89d995c8_5820_2e6a_92ea_6eb37739db54 9979b5ad_c399_5e5d_5569_19cde9d8c4f2["inEventLoop()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 9979b5ad_c399_5e5d_5569_19cde9d8c4f2 16337957_763a_b060_a972_0eb84c01886d["shutdownGracefully()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 16337957_763a_b060_a972_0eb84c01886d 958f8443_ca4c_9e11_8ae0_cd02d4093780["terminationFuture()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 958f8443_ca4c_9e11_8ae0_cd02d4093780 1082772f_97bd_f470_fd2d_64fbf45b57b3["shutdown()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 1082772f_97bd_f470_fd2d_64fbf45b57b3 e00cbd43_d7cf_17d5_36e7_1c2dfa7c77e7["isShuttingDown()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| e00cbd43_d7cf_17d5_36e7_1c2dfa7c77e7 92abdb33_db09_e72e_e53a_195d59adc06f["isShutdown()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 92abdb33_db09_e72e_e53a_195d59adc06f 764dc31a_a134_9e1f_0bf1_8cae3505e511["isTerminated()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 764dc31a_a134_9e1f_0bf1_8cae3505e511 f773c099_c708_ea4f_3b81_6af08b0f0f01["awaitTermination()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| f773c099_c708_ea4f_3b81_6af08b0f0f01 93ddbbf0_301e_a56d_1ccb_a7876d6a02e9["execute()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 93ddbbf0_301e_a56d_1ccb_a7876d6a02e9 0f9dab4e_9da1_c109_878e_e5ee82145748["newPromise()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| 0f9dab4e_9da1_c109_878e_e5ee82145748 ab75388d_1553_0d36_c072_c66fd478c685["newProgressivePromise()"] d421d17a_bf1e_40f2_4b05_2a7522a2ba63 -->|method| ab75388d_1553_0d36_c072_c66fd478c685
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/util/AbstractSharedExecutorMicrobenchmark.java lines 65–148
public static final class DelegateHarnessExecutor extends AbstractEventExecutor {
private static EventLoop executor;
private static final InternalLogger logger = InternalLoggerFactory.getInstance(DelegateHarnessExecutor.class);
public DelegateHarnessExecutor(int maxThreads, String prefix) {
logger.debug("Using DelegateHarnessExecutor executor {}", this);
}
/**
* Set the executor (in the form of an {@link EventLoop}) which JMH will use.
* <p>
* This must be called before JMH requires an executor to execute objects.
* @param service Used as an executor by JMH to run benchmarks.
*/
public static void executor(EventLoop service) {
executor = service;
}
@Override
public boolean inEventLoop() {
return executor.inEventLoop();
}
@Override
public boolean inEventLoop(Thread thread) {
return executor.inEventLoop(thread);
}
@Override
public Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) {
return executor.shutdownGracefully(quietPeriod, timeout, unit);
}
@Override
public Future<?> terminationFuture() {
return executor.terminationFuture();
}
@Override
@Deprecated
public void shutdown() {
executor.shutdown();
}
@Override
public boolean isShuttingDown() {
return executor.isShuttingDown();
}
@Override
public boolean isShutdown() {
return executor.isShutdown();
}
@Override
public boolean isTerminated() {
return executor.isTerminated();
}
@Override
public boolean awaitTermination(long timeout, TimeUnit unit) {
try {
return executor.awaitTermination(timeout, unit);
} catch (InterruptedException e) {
handleUnexpectedException(e);
}
return false;
}
@Override
public void execute(Runnable command) {
executor.execute(command);
}
@Override
public <V> Promise<V> newPromise() {
return executor.newPromise();
}
@Override
public <V> ProgressivePromise<V> newProgressivePromise() {
Defined In
Source
Frequently Asked Questions
What is the DelegateHarnessExecutor class?
DelegateHarnessExecutor is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/util/AbstractSharedExecutorMicrobenchmark.java.
Where is DelegateHarnessExecutor defined?
DelegateHarnessExecutor is defined in microbench/src/main/java/io/netty/microbench/util/AbstractSharedExecutorMicrobenchmark.java at line 65.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free