protected static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener extends AgentBuilder.InstallationListener.Adapter implements java.lang.Runnable
AgentBuilder.InstallationListener.Adapter, AgentBuilder.InstallationListener.Compound, AgentBuilder.InstallationListener.ErrorSuppressing, AgentBuilder.InstallationListener.NoOp, AgentBuilder.InstallationListener.StreamWriting
Modifier and Type | Field and Description |
---|---|
private AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.Cancelable |
cancelable
This scheduler's cancelable or
null if no cancelable was registered. |
private AgentBuilder.CircularityLock |
circularityLock
The circularity lock to use.
|
private java.lang.instrument.Instrumentation |
instrumentation
The instrumentation instance to use.
|
private AgentBuilder.Listener |
listener
The listener to use.
|
private AgentBuilder.LocationStrategy |
locationStrategy
The location strategy to use.
|
private AgentBuilder.RawMatcher |
matcher
The matcher to apply for analyzing if a type is to be resubmitted.
|
private AgentBuilder.RedefinitionStrategy.BatchAllocator |
redefinitionBatchAllocator
The batch allocator to use.
|
private AgentBuilder.RedefinitionStrategy.Listener |
redefinitionBatchListener
The batch listener to notify.
|
private AgentBuilder.RedefinitionStrategy |
redefinitionStrategy
The redefinition strategy to use.
|
private AgentBuilder.RedefinitionStrategy.ResubmissionScheduler |
resubmissionScheduler
The resubmission scheduler to use.
|
private 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.
|
SUPPRESS_ERROR
Modifier | Constructor and Description |
---|---|
protected |
ResubmissionInstallationListener(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
java.lang.instrument.Instrumentation instrumentation,
AgentBuilder.LocationStrategy locationStrategy,
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.
|
Modifier and Type | Method and Description |
---|---|
void |
onInstall(java.lang.instrument.Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
onReset(java.lang.instrument.Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
run() |
onBeforeInstall, onError
private final AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler
private final java.lang.instrument.Instrumentation instrumentation
private final AgentBuilder.LocationStrategy locationStrategy
private final AgentBuilder.Listener listener
private final AgentBuilder.CircularityLock circularityLock
private final AgentBuilder.RawMatcher matcher
private final AgentBuilder.RedefinitionStrategy redefinitionStrategy
private final AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator
private final AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener
private final java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types
private volatile AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.Cancelable cancelable
null
if no cancelable was registered.protected ResubmissionInstallationListener(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, java.lang.instrument.Instrumentation instrumentation, AgentBuilder.LocationStrategy locationStrategy, 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)
resubmissionScheduler
- The resubmission scheduler to use.instrumentation
- The instrumentation instance to use.locationStrategy
- The location 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.public void onInstall(java.lang.instrument.Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)
AgentBuilder.InstallationListener.Adapter
AgentBuilder.InstallationListener.onError(Instrumentation, ResettableClassFileTransformer, Throwable)
.onInstall
in interface AgentBuilder.InstallationListener
onInstall
in class AgentBuilder.InstallationListener.Adapter
instrumentation
- The instrumentation on which the class file transformer is installed.classFileTransformer
- The class file transformer that is being installed.public void onReset(java.lang.instrument.Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)
AgentBuilder.InstallationListener.Adapter
onReset
in interface AgentBuilder.InstallationListener
onReset
in class AgentBuilder.InstallationListener.Adapter
instrumentation
- The instrumentation on which the class file transformer is installed.classFileTransformer
- The class file transformer that is being installed.public void run()
run
in interface java.lang.Runnable