|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.chooser.ServerInfo
public class ServerInfo
Class ServerInfo Holds has methods for accessing the contents of servers.xml
Field Summary | |
---|---|
static String |
ATTR_ACTIVE
attributes |
static String |
ATTR_NAME
|
static String |
ATTR_NAMES
|
static String |
ATTR_PROJ
|
static String |
ATTR_TYPE
|
static String |
ATTR_USER
|
private String[] |
defTypes
|
private List |
groups
|
private IntegratedDataViewer |
myIdv
|
private static String |
proj
|
private List |
serverDescriptors
|
private Document |
serversDocument
|
private Element |
serversRoot
|
private XmlResourceCollection |
serversXRC
|
static String |
TAG_GROUP
|
static String |
TAG_SERVER
tags |
static String |
TAG_SERVERS
|
private List |
typeList
|
private static String |
user
|
Constructor Summary | |
---|---|
ServerInfo(IntegratedDataViewer idv,
XmlResourceCollection servers)
Constructor |
Method Summary | |
---|---|
void |
addServers(IntegratedDataViewer idv,
List serverList)
addServers to servers.xml input: type = data type serverList = alternating strings: name1, group1, name2, group2, etc. |
void |
clear(XmlResourceCollection serversXRC)
Clear servers.xml |
List |
getAddeServers(String type,
boolean all,
boolean includeDuplicates)
getAddeServers input: type = data type all = boolean flag includeDuplicates = boolean flag return List of server name strings |
List |
getGroups(String type)
getGroups - return all groups for a given data type return List of group name Strings |
String |
getProj()
getProj return project number, default="0" |
List |
getServerNames(String type,
boolean all,
boolean includeDuplicates)
getServerNames input: type = data type all = boolean flag includeDuplicates = boolean flag return List of server name strings |
List |
getServers(String type,
boolean all,
boolean includeDuplicates)
getServers input: type = data type all = boolean flag includeDuplicates = boolean flag return List of ServerDescriptors |
private void |
getServersFromXml(XmlResourceCollection servers)
getServersFromXml Read and parse servers.xml fill lists: typeList - type name Strings |
List |
getServerTypes()
getServerTypes return List of type Strings |
String |
getUser()
getUser return userId, default="idv" |
private boolean |
init()
init read servers.xml and initialize all Lists |
void |
setUserProj(String user,
String proj)
|
List |
updateAddeServers(String type,
boolean all,
boolean includeDuplicates)
updateAddeServers(String type, boolean all, boolean includeDuplicates) { input: type = data type all = boolean flag includeDuplicates = boolean flag return List of server name strings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IntegratedDataViewer myIdv
public static final String TAG_SERVER
public static final String TAG_SERVERS
public static final String TAG_GROUP
public static final String ATTR_ACTIVE
public static final String ATTR_NAME
public static final String ATTR_NAMES
public static final String ATTR_USER
public static final String ATTR_PROJ
public static final String ATTR_TYPE
private XmlResourceCollection serversXRC
private Document serversDocument
private Element serversRoot
private static String user
private static String proj
private List typeList
private List groups
private List serverDescriptors
private String[] defTypes
Constructor Detail |
---|
public ServerInfo(IntegratedDataViewer idv, XmlResourceCollection servers)
Method Detail |
---|
private void getServersFromXml(XmlResourceCollection servers)
public String getUser()
public String getProj()
public void setUserProj(String user, String proj)
public List getServerTypes()
public List getServers(String type, boolean all, boolean includeDuplicates)
public List getServerNames(String type, boolean all, boolean includeDuplicates)
public List getAddeServers(String type, boolean all, boolean includeDuplicates)
public List updateAddeServers(String type, boolean all, boolean includeDuplicates)
private boolean init()
public List getGroups(String type)
public void addServers(IntegratedDataViewer idv, List serverList)
public void clear(XmlResourceCollection serversXRC)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |