public final class MediaDriver
extends java.lang.Object
implements java.lang.AutoCloseable
$ java -jar aeron-driver.jar
$ java -Doption=value -jar aeron-driver.jar
Configuration| Modifier and Type | Class and Description |
|---|---|
static class |
MediaDriver.Context |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIRS_DELETE_ON_START_PROP_NAME
Attempt to delete directories on start if they exist
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
aeronDirectoryName()
Used to access the configured aeronDirectoryName for this MediaDriver, typically used after the
launchEmbedded() method is used. |
void |
close()
Shutdown the media driver by stopping all threads and freeing resources.
|
static MediaDriver |
launch()
Launch a MediaDriver embedded in the current process with default configuration.
|
static MediaDriver |
launch(MediaDriver.Context ctx)
Launch a MediaDriver embedded in the current process and provided a configuration ctx.
|
static MediaDriver |
launchEmbedded()
Launch an isolated MediaDriver embedded in the current process with a generated aeronDirectoryName that can be
retrieved by calling aeronDirectoryName.
|
static MediaDriver |
launchEmbedded(MediaDriver.Context ctx)
Launch an isolated MediaDriver embedded in the current process with a provided configuration ctx and a generated
aeronDirectoryName (overwrites configured
CommonContext.aeronDirectoryName()) that can be retrieved by calling
aeronDirectoryName. |
static void |
loadPropertiesFile(java.lang.String filenameOrUrl)
Load system properties from a given filename or url.
|
static void |
loadPropertiesFiles(java.lang.String[] filenamesOrUrls)
Load system properties from a given set of filenames or URLs.
|
static void |
main(java.lang.String[] args)
Start Media Driver as a stand-alone process.
|
public static final java.lang.String DIRS_DELETE_ON_START_PROP_NAME
public static void loadPropertiesFile(java.lang.String filenameOrUrl)
filenameOrUrl - that holds propertiespublic static void loadPropertiesFiles(java.lang.String[] filenamesOrUrls)
filenamesOrUrls - that holds propertiesloadPropertiesFile(String)public static void main(java.lang.String[] args)
throws java.lang.Exception
args - command line argumentsjava.lang.Exception - if an error occurspublic static MediaDriver launchEmbedded()
public static MediaDriver launchEmbedded(MediaDriver.Context ctx)
CommonContext.aeronDirectoryName()) that can be retrieved by calling
aeronDirectoryName.
If the aeronDirectoryName is configured then it will be used.ctx - containing the configuration options.public static MediaDriver launch()
public static MediaDriver launch(MediaDriver.Context ctx)
ctx - containing the configuration options.public void close()
close in interface java.lang.AutoCloseablepublic java.lang.String aeronDirectoryName()
launchEmbedded() method is used.Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.