Class LocalAddeEntry.Builder
java.lang.Object
edu.wisc.ssec.mcidasv.servermanager.LocalAddeEntry.Builder
- Enclosing class:
LocalAddeEntry
A builder of (mostly) immutable
LocalAddeEntry
instances.
Usage example:
LocalAddeEntry entry = new LocalAddeEntry
.Builder(group, name, format, mask)
.realtime("Y")
.range(start, end)
.type(EntryType.POINT)
.build();
Only the values required by the Builder constructor are required.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private String
Corresponds to RESOLV.SRV's "R2" section.private final LocalAddeEntry.AddeFormat
Corresponds to RESOLV.SRV's "MCV" section.private final String
Corresponds to RESOLV.SRV's "N1" section.private String
Corresponds to RESOLV.SRV's "K" section.private final String
Corresponds to RESOLV.SRV's "MASK" section.private final String
Corresponds to RESOLV.SRV's "C" section.private boolean
Corresponds to RESOLV.SRV's "RT" section.private LocalAddeEntry.ServerName
Defaults toLocalAddeEntry.ServerName.INVALID
.private String
Corresponds to RESOLV.SRV's "R1" section.private AddeEntry.EntryStatus
Defaults toAddeEntry.EntryStatus.INVALID
.private boolean
private AddeEntry.EntryType
Corresponds to RESOLV.SRV's "TYPE" section. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
descriptor
(String descriptor) This method is currently a no-op.realtime
(boolean realtime) status
(AddeEntry.EntryStatus status) temporary
(boolean temporary) type
(AddeEntry.EntryType type)
-
Field Details
-
group
Corresponds to RESOLV.SRV's "N1" section. -
name
Corresponds to RESOLV.SRV's "C" section. -
format
Corresponds to RESOLV.SRV's "MCV" section. -
mask
Corresponds to RESOLV.SRV's "MASK" section. -
descriptor
-
realtime
Corresponds to RESOLV.SRV's "RT" section. Defaults tofalse
. -
start
Corresponds to RESOLV.SRV's "R1" section. Defaults to "1". -
end
Corresponds to RESOLV.SRV's "R2" section. Defaults to "999999". -
status
Defaults toAddeEntry.EntryStatus.INVALID
. -
type
Corresponds to RESOLV.SRV's "TYPE" section. Defaults toIMAGE
. -
kind
Corresponds to RESOLV.SRV's "K" section. Defaults to "NOT_SET". -
safeKind
Defaults toLocalAddeEntry.ServerName.INVALID
. -
temporary
-
alias
-
-
Constructor Details
-
Builder
-
Builder
Creates a newLocalAddeEntry
"builder" with the required fields for aLocalAddeEntry
object.- Parameters:
name
- Name of the local ADDE dataset.group
- ADDE group name.mask
- Local file mask.format
- Type of data.
-
-
Method Details
-
descriptor
This method is currently a no-op.- Parameters:
descriptor
- Local ADDE entry descriptor. Currently ignored.- Returns:
LocalAddeEntry.Builder
with ADDE descriptor.
-
realtime
- Parameters:
realtimeAsStr
- Whether or not the local ADDE entry is "real time".- Returns:
LocalAddeEntry.Builder
with ADDE realtime flag.
-
realtime
- Parameters:
realtime
- Whether or not the local ADDE entry is "real time".- Returns:
LocalAddeEntry.Builder
with ADDE realtime flag.
-
type
- Parameters:
type
- ADDE data type.- Returns:
LocalAddeEntry.Builder
with ADDE data type.
-
kind
- Parameters:
kind
- ADDE server binary used to handle data.- Returns:
LocalAddeEntry.Builder
with ADDE kind.
-
start
- Parameters:
start
- Beginning of local ADDE dataset.- Returns:
LocalAddeEntry.Builder
with ADDE dataset "start".
-
end
- Parameters:
end
- End of local ADDE dataset.- Returns:
LocalAddeEntry.Builder
with ADDE dataset "end".
-
range
- Parameters:
start
- Beginning of local ADDE dataset.end
- End of local ADDE dataset.- Returns:
LocalAddeEntry.Builder
with ADDE dataset "start" and "end" values.
-
status
- Parameters:
status
- String representation of local ADDE entry status.- Returns:
LocalAddeEntry.Builder
withAddeEntry.EntryStatus
.
-
status
- Parameters:
status
- Local ADDE entry status.- Returns:
LocalAddeEntry.Builder
withAddeEntry.EntryStatus
.
-
temporary
- Parameters:
temporary
- Whether or not the local ADDE entry will be saved between application sessions.- Returns:
LocalAddeEntry.Builder
with the specified temporary status.
-
temporary
-
alias
- Parameters:
alias
- Set an alias to use for the local ADDE entry.- Returns:
LocalAddeEntry.Builder
with the specified alias.
-
build
- Returns:
- New
LocalAddeEntry
instance.
-