Package com.netcracker.profiler.agent
Interface ProfilerTransformerPlugin_01
- All Superinterfaces:
ProfilerTransformerPlugin
-
Method Summary
Modifier and TypeMethodDescriptionReturns status of current (last) reload operationvoidreloadClasses(Set<String> classNames) Initiates reload operation for a set of classes The reloading is performed using current configurationvoidreloadConfiguration(String newConfigPath) Initiates reload operation.Methods inherited from interface com.netcracker.profiler.agent.ProfilerTransformerPlugin
getConfiguration
-
Method Details
-
getReloadStatus
ReloadStatus getReloadStatus()Returns status of current (last) reload operation- Returns:
- status of current (last) reload operation
-
reloadConfiguration
void reloadConfiguration(String newConfigPath) throws IOException, SAXException, ParserConfigurationException Initiates reload operation. This will load new configuration to the class transformer, scan all the loaded classes and reload classes when nessesary.- Parameters:
newConfigPath- the parh to the new config file. Leave empty or null to reload configuration from current location The reloading is offloaded to a separate thread as soon as the configuration is parsed.- Throws:
IOException- when failed to include some file to the configurationSAXException- when parsing of configuration xml failedParserConfigurationException- when unable to create xml parser
-
reloadClasses
void reloadClasses(Set<String> classNames) throws IOException, SAXException, ParserConfigurationException Initiates reload operation for a set of classes The reloading is performed using current configuration- Parameters:
classNames- the names of classes that should be reloaded- Throws:
IOException- when failed to include some file to the configurationSAXException- when parsing of configuration xml failedParserConfigurationException- when unable to create xml parser
-