public final class Instrument extends Object
engine
. The instrument is
usable from other threads. The handle provides access to the metadata of the instrument and
allows to lookup
instrument specific services.
All methods here, as well as instrumentation services in general, can be used safely from any thread.
Engine.getInstruments()
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the ID clients can use to acquire this instrument.
|
String |
getName()
Gets a human-readable name for this instrument.
|
OptionDescriptors |
getOptions()
Gets the options available for this instrument.
|
String |
getVersion()
Gets the version of this instrument.
|
String |
getWebsite()
Gets the website of this instrument.
|
<T> T |
lookup(Class<T> type)
Looks up an additional internal service that is provided by this instrument using a Java
type.
|
public String getId()
public String getName()
public OptionDescriptors getOptions()
OptionDescriptors
.public String getVersion()
public <T> T lookup(Class<T> type)
T
- the type of the internal service.type
- class of the service that is being requested.null
if no such service is available.public String getWebsite()