|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.ssec.mcidasv.servermanager.LocalAddeEntry
public class LocalAddeEntry
| Nested Class Summary | |
|---|---|
static class |
LocalAddeEntry.AddeFormat
The various kinds of local ADDE data understood by McIDAS-V, along with some helpful metadata. |
static class |
LocalAddeEntry.Builder
A builder of (mostly) immutable LocalAddeEntry instances. |
static class |
LocalAddeEntry.ServerName
|
| Nested classes/interfaces inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry |
|---|
AddeEntry.EditorAction, AddeEntry.EntrySource, AddeEntry.EntryStatus, AddeEntry.EntryType, AddeEntry.EntryValidity |
| Field Summary | |
|---|---|
private String |
asStringId
|
private static String |
CYGWIN_PREFIX
|
private static int |
CYGWIN_PREFIX_LEN
|
private String |
descriptor
N2 |
private String |
end
R2 |
private AddeEntry.EntryStatus |
entryStatus
|
private String |
fileMask
MASK |
private LocalAddeEntry.AddeFormat |
format
MCV |
private String |
group
N1 |
static List<LocalAddeEntry> |
INVALID_ENTRIES
Represents a "bad" collection of local ADDE entries. |
static LocalAddeEntry |
INVALID_ENTRY
Represents a "bad" local ADDE entry. |
(package private) static org.slf4j.Logger |
logger
Friendly neighborhood logging object. |
private String |
name
C |
private boolean |
realtime
RT |
private String |
start
R1 |
| Fields inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry |
|---|
DEFAULT_ACCOUNT |
| Constructor Summary | |
|---|---|
private |
LocalAddeEntry(LocalAddeEntry.Builder builder)
|
| Method Summary | |
|---|---|
String |
asStringId()
Currently used as a identifier for convenient storage by the server manager. |
boolean |
equals(Object obj)
Checks a given object for equality with the current LocalAddeEntry
instance. |
static int |
generateHashCode(LocalAddeEntry entry)
|
static int |
generateHashCode(String name,
String group,
String fileMask,
LocalAddeEntry.AddeFormat format)
|
AddeAccount |
getAccount()
Accounting information associated with the current entry. |
String |
getAddress()
Address of the server associated with the current entry. |
String |
getDescriptor()
Gets the ADDE descriptor for the current local ADDE entry. |
String |
getEnd()
Gets the ending number of the current local ADDE dataset. |
String |
getEntryAlias()
|
AddeEntry.EntrySource |
getEntrySource()
Source that specified this entry. |
AddeEntry.EntryStatus |
getEntryStatus()
GUI status of the entry. |
String |
getEntryText()
Handy String representation of this ADDE entry. |
AddeEntry.EntryType |
getEntryType()
Type of chooser this entry should appear under. |
AddeEntry.EntryValidity |
getEntryValidity()
Does this entry represent a "valid" ADDE server. |
String |
getFileMask()
Gets the ADDE file mask for the current local ADDE entry. |
LocalAddeEntry.AddeFormat |
getFormat()
Gets the ADDE dataset format for the current local ADDE entry. |
String |
getGroup()
Dataset/group located on the server. |
String |
getMask()
Gets the ADDE file mask for the current local ADDE entry. |
String |
getName()
Name associated with this entry. |
boolean |
getRealtime()
Gets the ADDE realtime status of the current local ADDE entry. |
String |
getRealtimeAsString()
Gets the local ADDE dataset's realtime status as a value suitable for RESOLV.SRV (one of "Y" or "N"). |
String |
getStart()
Gets the starting number of the current local ADDE dataset. |
int |
hashCode()
|
boolean |
isValid()
Tests the current local ADDE dataset for validity. |
void |
setEntryAlias(String newAlias)
|
void |
setEntryStatus(AddeEntry.EntryStatus newStatus)
|
String |
toString()
String representation of this entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final org.slf4j.Logger logger
public static final LocalAddeEntry INVALID_ENTRY
public static final List<LocalAddeEntry> INVALID_ENTRIES
private static final String CYGWIN_PREFIX
private static final int CYGWIN_PREFIX_LEN
private AddeEntry.EntryStatus entryStatus
private final String group
private final String descriptor
private final boolean realtime
private final LocalAddeEntry.AddeFormat format
private final String start
private final String end
private final String fileMask
private final String name
private String asStringId
| Constructor Detail |
|---|
private LocalAddeEntry(LocalAddeEntry.Builder builder)
builder - LocalAddeEntry.Builder| Method Detail |
|---|
public AddeAccount getAccount()
AddeEntryAddeEntry.DEFAULT_ACCOUNT.
getAccount in interface AddeEntrypublic String getAddress()
AddeEntryLocalAddeEntrys will return localhost.
getAddress in interface AddeEntrypublic AddeEntry.EntrySource getEntrySource()
AddeEntry
getEntrySource in interface AddeEntrypublic AddeEntry.EntryStatus getEntryStatus()
AddeEntryAddeEntry.EntryValidity in that
EntryStatus controls this entry showing up in a chooser and has
nothing to do with whether or not the entry is a valid ADDE server.
getEntryStatus in interface AddeEntrypublic String getEntryText()
AddeEntryString representation of this ADDE entry. Currently looks
like ADDRESS/GROUP, but this is subject to change.
getEntryText in interface AddeEntrypublic AddeEntry.EntryType getEntryType()
AddeEntry
getEntryType in interface AddeEntrypublic AddeEntry.EntryValidity getEntryValidity()
AddeEntry
getEntryValidity in interface AddeEntrypublic String getEntryAlias()
getEntryAlias in interface AddeEntrypublic void setEntryAlias(String newAlias)
setEntryAlias in interface AddeEntrypublic void setEntryStatus(AddeEntry.EntryStatus newStatus)
setEntryStatus in interface AddeEntrypublic String getGroup()
AddeEntry
getGroup in interface AddeEntrypublic String getName()
AddeEntry
getName in interface AddeEntrypublic String getDescriptor()
public LocalAddeEntry.AddeFormat getFormat()
public String getMask()
public String getFileMask()
public boolean getRealtime()
public String getStart()
public String getEnd()
public boolean isValid()
true iff group and name are not empty.public String getRealtimeAsString()
public int hashCode()
hashCode in class ObjectgenerateHashCode(String, String, String, AddeFormat)public boolean equals(Object obj)
LocalAddeEntry
instance.
equals in class Objectobj - Object to check. null values allowed.
true if obj is "equal" to the current
LocalAddeEntry instance.public String asStringId()
AddeEntry
asStringId in interface AddeEntrypublic String toString()
AddeEntry
toString in interface AddeEntrytoString in class Objectpublic static int generateHashCode(LocalAddeEntry entry)
public static int generateHashCode(String name,
String group,
String fileMask,
LocalAddeEntry.AddeFormat format)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||