public class ExtensionService extends AbstractService implements HarvestListener
logger| Constructor and Description |
|---|
ExtensionService(ConfigService configService,
ExtensionsLoadedListener extensionsLoadedListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstruct(ConfigurationConstruct construct)
This method allows other services to extend the yml parser to support their own custom yml.
|
protected void |
addInternalExtensionForTesting(Extension ext) |
void |
afterHarvest(java.lang.String pAppName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String pAppName,
StatsEngine pStatsEngine)
Called before the harvest.
|
protected void |
doStart() |
protected void |
doStop() |
java.util.List<ExtensionClassAndMethodMatcher> |
getEnabledPointCuts()
Returns the point cuts read in from extension files.
|
java.util.Set<Extension> |
getExtensions()
Returns the extensions last loaded from the extensions directory.
|
java.util.Map<java.lang.String,Extension> |
getInternalExtensions()
Returns a map of extensions.
|
java.util.Set<java.io.File> |
getWeaveExtensions()
Returns the files that contain weave instrumentation.
|
boolean |
isEnabled()
Always enabled to support dynamic instrumentation.
|
protected Extension |
validateExtension(Extension extension,
java.util.Map<java.lang.String,Extension> existingExtensions)
Validates extension against existingExtensions for name and version issues.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic ExtensionService(ConfigService configService, ExtensionsLoadedListener extensionsLoadedListener)
public boolean isEnabled()
protected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic void beforeHarvest(java.lang.String pAppName,
StatsEngine pStatsEngine)
HarvestListenerbeforeHarvest in interface HarvestListenerpublic void afterHarvest(java.lang.String pAppName)
HarvestListenerafterHarvest in interface HarvestListenerprotected void addInternalExtensionForTesting(Extension ext)
protected Extension validateExtension(Extension extension, java.util.Map<java.lang.String,Extension> existingExtensions)
extension - The extension to validate.existingExtensions - Map to compare against for version issues.public final java.util.List<ExtensionClassAndMethodMatcher> getEnabledPointCuts()
public void addConstruct(ConfigurationConstruct construct)
construct - public final java.util.Map<java.lang.String,Extension> getInternalExtensions()
public final java.util.Set<Extension> getExtensions()
public java.util.Set<java.io.File> getWeaveExtensions()