-
Notifications
You must be signed in to change notification settings - Fork 0
/
Flags.java
97 lines (82 loc) · 3.01 KB
/
Flags.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.cloud.healthcare.imaging.dicomadapter;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
@Parameters(separators = "= ")
public class Flags {
@Parameter(
names = {"--dimse_aet"},
description = "Title of DIMSE Application Entity."
)
String dimseAET = "";
@Parameter(
names = {"--dimse_cmove_aet"},
description = "(Optional) Separate AET used for C-STORE calls within context of C-MOVE."
)
String dimseCmoveAET = "";
@Parameter(
names = {"--dimse_port"},
description = "Port the server is listening to for incoming DIMSE requests."
)
Integer dimsePort = 0;
@Deprecated
@Parameter(
names = {"--dicomweb_addr"},
description = "Address for DicomWeb service. Deprecated and used only with C-STORE. "
+ "If dicomweb_address is also specified, it takes precedence."
)
String dicomwebAddr = "";
@Deprecated
@Parameter(
names = {"--dicomweb_stow_path"},
description =
"Path to send StowRS requests for DicomWeb peer. This is appended to the contents of --dicomweb_addr flag. "
+ "Deprecated and used only with C-STORE. If dicomweb_address is also specified, it takes precedence."
)
String dicomwebStowPath = "";
@Parameter(
names = {"--dicomweb_address"},
description = "Address for DicomWeb service. Must be a full path up to /dicomWeb if the Cloud Healthcare API is used."
)
String dicomwebAddress = "";
@Parameter(
names = {"--oauth_scopes"},
description = "Comma seperated OAuth scopes used by adapter."
)
String oauthScopes = "";
@Parameter(
names = {"--verbose"},
description = "Prints out debug messages."
)
boolean verbose = false;
@Parameter(
names = {"--aet_dictionary"},
description = "Path to json containing aet definitions (array containing name/host/port per element)"
)
String aetDictionaryPath = "";
@Parameter(
names = {"--aet_dictionary_inline"},
description = "Json array containing aet definitions (name/host/port per element). "
+ "Only one of aet_dictionary and aet_dictionary_inline needs to be specified."
)
String aetDictionaryInline = "";
@Parameter(
names = {"--monitoring_project_id"},
description = "Stackdriver monitoring project id, must be the same as the project id in which the adapter is running"
)
String monitoringProjectId = "";
public Flags() {
}
}