Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.InstallationListener.Adapter
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener
-
- All Implemented Interfaces:
java.lang.Runnable,AgentBuilder.InstallationListener
- Enclosing class:
- AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled
protected static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener extends AgentBuilder.InstallationListener.Adapter implements java.lang.Runnable
A job that resubmits any matched type that previously failed during transformation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.InstallationListener
AgentBuilder.InstallationListener.Adapter, AgentBuilder.InstallationListener.Compound, AgentBuilder.InstallationListener.ErrorSuppressing, AgentBuilder.InstallationListener.NoOp, AgentBuilder.InstallationListener.StreamWriting
-
-
Field Summary
Fields Modifier and Type Field Description private AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.CancelablecancelableThis scheduler's cancelable ornullif no cancelable was registered.private AgentBuilder.CircularityLockcircularityLockThe circularity lock to use.private AgentBuilder.DescriptionStrategydescriptionStrategyThe description strategy to use.private AgentBuilder.FallbackStrategyfallbackStrategyThe fallback strategy to use.private java.lang.instrument.InstrumentationinstrumentationThe instrumentation instance to use.private AgentBuilder.ListenerlistenerThe listener to use.private AgentBuilder.LocationStrategylocationStrategyThe location strategy to use.private AgentBuilder.RawMatchermatcherThe matcher to apply for analyzing if a type is to be resubmitted.private AgentBuilder.PoolStrategypoolStrategyThe pool strategy to use.private AgentBuilder.RedefinitionStrategy.BatchAllocatorredefinitionBatchAllocatorThe batch allocator to use.private AgentBuilder.RedefinitionStrategy.ListenerredefinitionBatchListenerThe batch listener to notify.private AgentBuilder.RedefinitionStrategyredefinitionStrategyThe redefinition strategy to use.private AgentBuilder.RedefinitionStrategy.ResubmissionSchedulerresubmissionSchedulerThe resubmission scheduler to use.private java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>>typesA map of class loaders to their types to resubmit.-
Fields inherited from interface net.bytebuddy.agent.builder.AgentBuilder.InstallationListener
SUPPRESS_ERROR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResubmissionInstallationListener(java.lang.instrument.Instrumentation instrumentation, AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener, java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types)Creates a new resubmission job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonInstall(java.lang.instrument.Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)Invoked upon the successful installation of a class file transformer.voidonReset(java.lang.instrument.Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)Invoked if an installation is reset.voidrun()-
Methods inherited from class net.bytebuddy.agent.builder.AgentBuilder.InstallationListener.Adapter
onAfterWarmUp, onBeforeInstall, onBeforeWarmUp, onError, onWarmUpError
-
-
-
-
Field Detail
-
instrumentation
private final java.lang.instrument.Instrumentation instrumentation
The instrumentation instance to use.
-
resubmissionScheduler
private final AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler
The resubmission scheduler to use.
-
locationStrategy
private final AgentBuilder.LocationStrategy locationStrategy
The location strategy to use.
-
poolStrategy
private final AgentBuilder.PoolStrategy poolStrategy
The pool strategy to use.
-
descriptionStrategy
private final AgentBuilder.DescriptionStrategy descriptionStrategy
The description strategy to use.
-
fallbackStrategy
private final AgentBuilder.FallbackStrategy fallbackStrategy
The fallback strategy to use.
-
listener
private final AgentBuilder.Listener listener
The listener to use.
-
circularityLock
private final AgentBuilder.CircularityLock circularityLock
The circularity lock to use.
-
matcher
private final AgentBuilder.RawMatcher matcher
The matcher to apply for analyzing if a type is to be resubmitted.
-
redefinitionStrategy
private final AgentBuilder.RedefinitionStrategy redefinitionStrategy
The redefinition strategy to use.
-
redefinitionBatchAllocator
private final AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator
The batch allocator to use.
-
redefinitionBatchListener
private final AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener
The batch listener to notify.
-
types
private final java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types
A map of class loaders to their types to resubmit.
-
cancelable
@MaybeNull private volatile AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.Cancelable cancelable
This scheduler's cancelable ornullif no cancelable was registered.
-
-
Constructor Detail
-
ResubmissionInstallationListener
protected ResubmissionInstallationListener(java.lang.instrument.Instrumentation instrumentation, AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener, java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types)Creates a new resubmission job.- Parameters:
resubmissionScheduler- The resubmission scheduler to use.instrumentation- The instrumentation instance to use.poolStrategy- The pool strategy to use.locationStrategy- The location strategy to use.descriptionStrategy- The description strategy to use.fallbackStrategy- The fallback strategy to use.listener- The listener to use.circularityLock- The circularity lock to use.matcher- The matcher to apply for analyzing if a type is to be resubmitted.redefinitionStrategy- The redefinition strategy to use.redefinitionBatchAllocator- The batch allocator to use.redefinitionBatchListener- The batch listener to notify.types- A map of class loaders to their types to resubmit.
-
-
Method Detail
-
onInstall
public void onInstall(java.lang.instrument.Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)Description copied from class:AgentBuilder.InstallationListener.AdapterInvoked upon the successful installation of a class file transformer. This method is only invoked if no error occurred during the installation or if such an error was handled byAgentBuilder.InstallationListener.onError(Instrumentation, ResettableClassFileTransformer, Throwable).- Specified by:
onInstallin interfaceAgentBuilder.InstallationListener- Overrides:
onInstallin classAgentBuilder.InstallationListener.Adapter- Parameters:
instrumentation- The instrumentation on which the class file transformer is installed.classFileTransformer- The class file transformer that is being installed.
-
onReset
public void onReset(java.lang.instrument.Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)Description copied from class:AgentBuilder.InstallationListener.AdapterInvoked if an installation is reset.- Specified by:
onResetin interfaceAgentBuilder.InstallationListener- Overrides:
onResetin classAgentBuilder.InstallationListener.Adapter- Parameters:
instrumentation- The instrumentation on which the class file transformer is installed.classFileTransformer- The class file transformer that is being installed.
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
-