Skip to content
Snippets Groups Projects
Commit 494061f5 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

disable the "-m" option (ManagerHandler) by default.

To enable, build with Constants.ENABLE_EXPERIMENTAL_FEATURES=true.
parent b0e9c176
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,12 @@ import java.util.Map.Entry;
* per line. Each line is formatted as "NAME <TAB> XML".
* -p <PORT> Listening port. (default: 8080)
* -s <HOSTNAME> Hostname of the server.
* -m enable statistics and manager context. EXPERIMENTAL!
* </pre>
*
* To enable the {@code -m} option, build with
* {@link Constants#ENABLE_EXPERIMENTAL_FEATURES} set to {@code true}.
*
* @author Tobias Pietzsch <tobias.pietzsch@gmail.com>
* @author HongKee Moon <moon@mpi-cbg.de>
*/
......@@ -201,9 +205,12 @@ public class BigDataServer
.withArgName( "FILE" )
.create( "d" ) );
options.addOption( OptionBuilder
.withDescription( "enable statistics and manager context. EXPERIMENTAL!" )
.create( "m" ) );
if ( Constants.ENABLE_EXPERIMENTAL_FEATURES )
{
options.addOption( OptionBuilder
.withDescription( "enable statistics and manager context. EXPERIMENTAL!" )
.create( "m" ) );
}
try
{
......@@ -221,8 +228,11 @@ public class BigDataServer
final HashMap< String, String > datasets = new HashMap< String, String >( defaultParameters.getDatasets() );
boolean enableManagerContext = false;
if ( cmd.hasOption( "m" ) )
enableManagerContext = true;
if ( Constants.ENABLE_EXPERIMENTAL_FEATURES )
{
if ( cmd.hasOption( "m" ) )
enableManagerContext = true;
}
if ( cmd.hasOption( "d" ) )
{
......
......@@ -15,4 +15,6 @@ public class Constants
public static final int THUMBNAIL_WIDTH = 100;
public static final int THUMBNAIL_HEIGHT = 100;
public static final boolean ENABLE_EXPERIMENTAL_FEATURES = false;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment