public class ScriptedCollectionSetBuilder extends Object
CollectionSet
from some given object using the
CollectionSetBuilder
.Constructor and Description |
---|
ScriptedCollectionSetBuilder(File script) |
ScriptedCollectionSetBuilder(File script,
org.osgi.framework.BundleContext bundleContext) |
ScriptedCollectionSetBuilder(File script,
ScriptEngineManager manager) |
Modifier and Type | Method and Description |
---|---|
CollectionSet |
build(CollectionAgent agent,
Object message,
Long timestamp)
Builds a collection set from the given message.
|
public ScriptedCollectionSetBuilder(File script) throws IOException, ScriptException
IOException
ScriptException
public ScriptedCollectionSetBuilder(File script, org.osgi.framework.BundleContext bundleContext) throws IOException, ScriptException
IOException
ScriptException
public ScriptedCollectionSetBuilder(File script, ScriptEngineManager manager) throws IOException, ScriptException
IOException
ScriptException
public CollectionSet build(CollectionAgent agent, Object message, Long timestamp) throws ScriptException
agent
- the agent associated with the collection setmessage
- the messaged passed to script containing the metricsScriptException
Copyright © 2021. All rights reserved.