Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 2b110dc

Browse files
committed
Add args parsing for config
1 parent e8a208e commit 2b110dc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ For some of the tests, a running naming service is required. The naming service
1919
- [ ] Add one to one communication for datarecords
2020
- [ ] Add one to one communication for machine addition announcement
2121

22+
## Storage
23+
- [ ] Remove data that is expired
24+
2225
### Handling Missed Messages
2326
- [x] Add message history size to machine config (node specific), cleanup config files
2427
- [ ] (Add message history cleanup functionality (on receiver and sender side), not implemented in thesis)

src/main/java/control/Starter.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ public class Starter {
1212
public static void main(String[] args)
1313
throws FBaseStorageConnectorException, InterruptedException, ExecutionException,
1414
TimeoutException, FBaseCommunicationException, FBaseNamingServiceException {
15-
FBase fbase = new FBase("local.properties");
15+
FBase fbase;
16+
if (args.length == 1) {
17+
fbase = new FBase(args[0]);
18+
} else {
19+
fbase = new FBase("local.properties");
20+
}
1621
fbase.startup(true, true); // TODO 2: parse from args
1722
fbase.fillWithData();
1823
}

0 commit comments

Comments
 (0)