edu.wisc.ssec.mcidasv.chooser
Class ServerDescriptor

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

public class ServerDescriptor
extends Object

Class ServerDescriptor Holds the state of server components from servers.xml


Field Summary
private  String dataType
          Data type
private  String groupName
          Group name
private  boolean isActive
          Is the server active
private  String serverName
          Server name or IP address
 
Constructor Summary
ServerDescriptor(String type, String name, String group, String active)
          Constructor
 
Method Summary
 String getDataType()
          Get the data type
 String getGroupName()
          Get the groupName property.
 boolean getIsActive()
          Get the isActive property.
 String getServerName()
          Get the serverName property.
 boolean isDataType(String type)
          Does this server contain data of specified 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.
 String toString()
          Get a String representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isActive

private boolean isActive
Is the server active


serverName

private String serverName
Server name or IP address


groupName

private String groupName
Group name


dataType

private String dataType
Data type

Constructor Detail

ServerDescriptor

public ServerDescriptor(String type,
                        String name,
                        String group,
                        String active)
Constructor

Method Detail

getIsActive

public boolean getIsActive()
Get the isActive property.

Returns:
The isActive property.

getDataType

public String getDataType()
Get the data type

Returns:
The dataType property.

isDataType

public boolean isDataType(String type)
Does this server contain data of specified type

Returns:
true or false.

getServerName

public String getServerName()
Get the serverName property.

Returns:
The serverName property.

getGroupName

public String getGroupName()
Get the groupName property.

Returns:
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:
a string representation