Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Server_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Server_Extension
Commits
494061f5
Commit
494061f5
authored
10 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/bdv/server/BigDataServer.java
+15
-5
15 additions, 5 deletions
src/main/java/bdv/server/BigDataServer.java
src/main/java/bdv/server/Constants.java
+2
-0
2 additions, 0 deletions
src/main/java/bdv/server/Constants.java
with
17 additions
and
5 deletions
src/main/java/bdv/server/BigDataServer.java
+
15
−
5
View file @
494061f5
...
...
@@ -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"
)
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/bdv/server/Constants.java
+
2
−
0
View file @
494061f5
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment