public class ServerInfo extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ServerInfo(IntegratedDataViewer idv,
XmlResourceCollection servers)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
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 List serverDescriptors
public ServerInfo(IntegratedDataViewer idv, XmlResourceCollection servers)
private void getServersFromXml(XmlResourceCollection servers)
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)