Skip to content

Commit f460ce3

Browse files
hennlovogti
authored andcommitted
Added help on binary
1 parent 5141ab4 commit f460ce3

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

core/src/main/java/org/polypheny/db/config/RuntimeConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public enum RuntimeConfig {
391391
MONITORING_MAXIMUM_POOL_SIZE(
392392
"runtime/maximumPoolSize",
393393
"The maximum number of threads to allow in the pool used for processing workload monitoring events.",
394-
5000,
394+
8,
395395
ConfigType.INTEGER,
396396
"monitoringSettingsQueueGroup" ),
397397

dbms/src/main/java/org/polypheny/db/PolyphenyDb.java

+10-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616

1717
package org.polypheny.db;
1818

19-
19+
import com.github.rvesse.airline.HelpOption;
2020
import com.github.rvesse.airline.SingleCommand;
2121
import com.github.rvesse.airline.annotations.Command;
2222
import com.github.rvesse.airline.annotations.Option;
2323
import com.github.rvesse.airline.annotations.OptionType;
2424
import java.awt.SystemTray;
2525
import java.io.File;
2626
import java.io.Serializable;
27+
import javax.inject.Inject;
2728
import lombok.Getter;
2829
import lombok.extern.slf4j.Slf4j;
2930
import org.polypheny.db.StatusService.ErrorConfig;
@@ -84,6 +85,9 @@ public class PolyphenyDb {
8485

8586
private final TransactionManager transactionManager = new TransactionManagerImpl();
8687

88+
@Inject
89+
public HelpOption helpOption;
90+
8791
@Option(name = { "-resetCatalog" }, description = "Reset the catalog")
8892
public boolean resetCatalog = false;
8993

@@ -131,6 +135,10 @@ public static void main( final String[] args ) {
131135
// Hide dock icon on macOS systems
132136
System.setProperty( "apple.awt.UIElement", "true" );
133137

138+
if (polyphenyDb.helpOption.showHelpIfRequested()) {
139+
return;
140+
}
141+
134142
polyphenyDb.runPolyphenyDb();
135143
} catch ( Throwable uncaught ) {
136144
if ( log.isErrorEnabled() ) {
@@ -420,4 +428,4 @@ public void join( final long millis ) throws InterruptedException {
420428
}
421429
}
422430

423-
}
431+
}

0 commit comments

Comments
 (0)