Class ServerDescriptor

java.lang.Object
edu.wisc.ssec.mcidasv.chooser.ServerDescriptor

public class ServerDescriptor extends Object
Holds the state of server components from servers.xml.
  • Field Details

  • Constructor Details

    • ServerDescriptor

      public ServerDescriptor(String type, String name, String group, String active)
      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

      public boolean getIsActive()
      Get the isActive property.
      Returns:
      Value of the isActive property.
    • getDataType

      public String getDataType()
      Get the data type property.
      Returns:
      Value of the dataType property.
    • isDataType

      public boolean isDataType(String type)
      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 if type is supported, false otherwise.
    • getServerName

      Get the serverName property.
      Returns:
      Value of the serverName property.
    • getGroupName

      public String getGroupName()
      Get the groupName property.
      Returns:
      Value of the groupName property.
    • setIsActive

      public void setIsActive(boolean newValue)
      Set the isActive property.
      Parameters:
      newValue - The new vaue for the isActive property.
    • setDataType

      public void setDataType(String newValue)
      Set the dataType property.
      Parameters:
      newValue - The new vaue for the dataType property.
    • setServerName

      public void setServerName(String newValue)
      Set the serverName property.
      Parameters:
      newValue - The new vaue for the serverName property.
    • setGroupName

      public void setGroupName(String newValue)
      Set the groupName property.
      Parameters:
      newValue - The new vaue for the groupName property.
    • toString

      public String toString()
      Get a String representation of this object.
      Overrides:
      toString in class Object
      Returns:
      String representation that generally looks like "SERVERNAME/GROUPNAME".