public class TopologyFile
extends java.lang.Object
Title: General CWMS Framework
Description:
Copyright: Copyright (c) 2002
Company: RMA Inc.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVE
the active startup state
|
static java.lang.String |
COOP_HOST_TYPE
Description
|
static java.lang.String |
CWMS_SYSTEM_TYPE
Description
|
static java.lang.String |
DA_SYS_TYPE
Data Acquisition system type
|
static java.lang.String |
DB_SYS_TYPE
DataBase system type
|
static java.lang.String |
END_FILE
end of file marker.
|
static java.lang.String |
END_HOST
Description
|
static java.lang.String |
HOST_COOP_SERVER_PORT
Description
|
static java.lang.String |
HOST_COOP_TYPE
Description
|
static java.lang.String |
HOST_IP
Description
|
static java.lang.String |
HOST_NAME
Description
|
static java.lang.String |
HOST_STARTUP_STATE
Description
|
static java.lang.String |
HOST_USERID
Description
|
static java.lang.String |
MODELING_SYS_TYPE
modeling system type
|
static java.lang.String |
PRIMARY_HOST_TYPE
Description
|
static java.lang.String |
REMOTESERVER_COOP_HOSTIP
Description
|
static java.lang.String |
STANDBY
the standby startup state
|
| Constructor and Description |
|---|
TopologyFile()
Create a new TopologyFile object
|
TopologyFile(HecFile file) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getCoopHosts()
Gets the CoopHosts attribute of the TopologyFile object
|
TopologyFileEntry |
getEntryForIP(java.lang.String ipAddress)
Gets the EntryForIP attribute of the TopologyFile object
|
TopologyFileEntry |
getEntryForName(java.lang.String name)
Gets the EntryForName attribute of the TopologyFile object
|
static java.lang.String |
getLastPathPart()
return the last path part to the topology.conf file.
|
java.util.List |
getLocalHosts(TopologyFileEntry entry)
Get the other local hosts for entry.
|
java.util.List |
getLocalHosts(TopologyFileEntry entry,
boolean returnEntry)
Gets the SisterHosts attribute of the TopologyFile object
|
TopologyFileEntry |
getMasterEntry()
Gets the MasterEntry attribute of the TopologyFile object
|
TopologyFileEntry |
getPrimaryHostForCoop(TopologyFileEntry coopEntry)
Gets the PrimaryHostForCoop attribute of the TopologyFile object
|
java.util.List |
getPrimaryHosts()
Gets the PrimaryHosts attribute of the TopologyFile object
|
java.util.List |
getRemoteHosts(TopologyFileEntry entry)
Gets the RemoteHosts attribute of the TopologyFile object
|
java.io.File |
getTopologyFile() |
static boolean |
isCoopHost(TopologyFileEntry entry)
Gets the CoopHost attribute of the TopologyFile class
|
static boolean |
isPrimaryHost(TopologyFileEntry entry)
Gets the PrimaryHost attribute of the TopologyFile class
|
static boolean |
isValidSystemType(TopologyFileEntry entry)
Gets the ValidSystemType attribute of the TopologyFile class
|
static void |
main(java.lang.String[] args) |
void |
reload(boolean force) |
public static final java.lang.String HOST_IP
public static final java.lang.String HOST_NAME
public static final java.lang.String HOST_USERID
public static final java.lang.String HOST_COOP_TYPE
public static final java.lang.String HOST_STARTUP_STATE
public static final java.lang.String CWMS_SYSTEM_TYPE
public static final java.lang.String HOST_COOP_SERVER_PORT
public static final java.lang.String REMOTESERVER_COOP_HOSTIP
public static final java.lang.String END_HOST
public static final java.lang.String END_FILE
public static final java.lang.String PRIMARY_HOST_TYPE
public static final java.lang.String COOP_HOST_TYPE
public static final java.lang.String DB_SYS_TYPE
public static final java.lang.String DA_SYS_TYPE
public static final java.lang.String MODELING_SYS_TYPE
public static final java.lang.String ACTIVE
public static final java.lang.String STANDBY
public TopologyFile()
public TopologyFile(HecFile file)
public java.io.File getTopologyFile()
public void reload(boolean force)
public java.util.List getLocalHosts(TopologyFileEntry entry)
entry - the entry to get other local hosts for. Will also
return entry in the listpublic java.util.List getLocalHosts(TopologyFileEntry entry, boolean returnEntry)
entry - the TopologyFileEntry to get the other locals hosts forreturnEntry - true to include entry in the listpublic java.util.List getRemoteHosts(TopologyFileEntry entry)
entry - Descriptionpublic java.util.List getPrimaryHosts()
public java.util.List getCoopHosts()
public static boolean isValidSystemType(TopologyFileEntry entry)
entry - Descriptionpublic TopologyFileEntry getPrimaryHostForCoop(TopologyFileEntry coopEntry)
coopEntry - Descriptionpublic static boolean isPrimaryHost(TopologyFileEntry entry)
entry - Descriptionpublic static boolean isCoopHost(TopologyFileEntry entry)
entry - Descriptionpublic TopologyFileEntry getMasterEntry()
public TopologyFileEntry getEntryForIP(java.lang.String ipAddress)
ipAddress - Descriptionpublic TopologyFileEntry getEntryForName(java.lang.String name)
name - Descriptionpublic static void main(java.lang.String[] args)
args - The command line argumentspublic static java.lang.String getLastPathPart()