Package edu.wisc.ssec.mcidasv.chooser
Class ServerDescriptor
java.lang.Object
edu.wisc.ssec.mcidasv.chooser.ServerDescriptor
Holds the state of server components from
servers.xml
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerDescriptor
(String type, String name, String group, String active) Create a new server descriptor object. -
Method Summary
Modifier and TypeMethodDescriptionGet the data type property.Get the groupName property.boolean
Get the isActive property.Get the serverName property.boolean
isDataType
(String type) Determine whether or not this server supports data of the given type.void
setDataType
(String newValue) Set the dataType property.void
setGroupName
(String newValue) Set the groupName property.void
setIsActive
(boolean newValue) Set the isActive property.void
setServerName
(String newValue) Set the serverName property.toString()
Get a String representation of this object.
-
Field Details
-
isActive
Is the server active -
serverName
Server name or IP address -
groupName
Group name -
dataType
Data type
-
-
Constructor Details
-
ServerDescriptor
Create a new server descriptor object.- Parameters:
type
- Data type. Should be one of "image", "point", "grid", "text", "nav".name
- ADDE server name.group
- ADDE group name.active
-"true"
if this descriptor should be active.
-
-
Method Details
-
getIsActive
Get the isActive property.- Returns:
- Value of the
isActive
property.
-
getDataType
Get the data type property.- Returns:
- Value of the
dataType
property.
-
isDataType
Determine whether or not this server supports data of the given type.- Parameters:
type
- Data type. Should be one of "image", "point", "grid", "text", "nav".- Returns:
true
iftype
is supported,false
otherwise.
-
getServerName
Get the serverName property.- Returns:
- Value of the
serverName
property.
-
getGroupName
Get the groupName property.- Returns:
- Value of the
groupName
property.
-
setIsActive
Set the isActive property.- Parameters:
newValue
- The new vaue for theisActive
property.
-
setDataType
Set the dataType property.- Parameters:
newValue
- The new vaue for thedataType
property.
-
setServerName
Set the serverName property.- Parameters:
newValue
- The new vaue for theserverName
property.
-
setGroupName
Set the groupName property.- Parameters:
newValue
- The new vaue for thegroupName
property.
-
toString
Get a String representation of this object.
-