aeron-driver/src/main/java/io/aeron/driver/MediaDriver.java
public static MediaDriver launchEmbedded(final Context ctx)
    {
        if (CommonContext.AERON_DIR_PROP_DEFAULT.equals(ctx.aeronDirectoryName()))
        {
            ctx.aeronDirectoryName(CommonContext.generateRandomDirName());
        }

        return launch(ctx);
    }
public static MediaDriver launchEmbedded(final Context ctx)
    {
        if (CommonContext.AERON_DIR_PROP_DEFAULT.equals(ctx.aeronDirectoryName()))
        {
            ctx.aeronDirectoryName(CommonContext.generateRandomDirName());
        }

        return launch(ctx);
    }
public static MediaDriver launchEmbedded ( final Context ctx ) { if ( CommonContext . AERON_DIR_PROP_DEFAULT . equals ( ctx . aeronDirectoryName ( ) ) ) { ctx . aeronDirectoryName ( CommonContext . generateRandomDirName ( ) ) ; } return launch ( ctx ) ; }
Launch an isolated MediaDriver embedded in the current process with a provided configuration ctx and a generated
aeronDirectoryName (overwrites configured {@link Context#aeronDirectoryName()}) that can be retrieved by calling
aeronDirectoryName.
<p>
If the aeronDirectoryName is set as a system property, or via context, to something different than
{@link CommonContext#AERON_DIR_PROP_DEFAULT} then this set value will be used.

@param ctx containing the configuration options.
@return the newly started MediaDriver.
Launch an isolated MediaDriver embedded in the current process with a provided configuration ctx and a generated aeronDirectoryName ( overwrites configured { @link Context#aeronDirectoryName () } ) that can be retrieved by calling aeronDirectoryName . <p > If the aeronDirectoryName is set as a system property or via context to something different than { @link CommonContext#AERON_DIR_PROP_DEFAULT } then this set value will be used .