Package hec.io
Class TopologyFile
java.lang.Object
hec.io.TopologyFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
the active startup statestatic final String
Descriptionstatic final String
Descriptionstatic final String
Data Acquisition system typestatic final String
DataBase system typestatic final String
end of file marker.static final String
Descriptionprotected static final String[]
Descriptionstatic final String
Descriptionstatic final String
Descriptionstatic final String
Descriptionstatic final String
Descriptionstatic final String
Descriptionstatic final String
Descriptionstatic final String
modeling system typestatic final String
Descriptionstatic final String
Descriptionstatic final String
the standby startup state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the CoopHosts attribute of the TopologyFile objectgetEntryForIP
(String ipAddress) Gets the EntryForIP attribute of the TopologyFile objectgetEntryForName
(String name) Gets the EntryForName attribute of the TopologyFile objectstatic String
return the last path part to the topology.conf file.getLocalHosts
(TopologyFileEntry entry) Get the other local hosts for entry.getLocalHosts
(TopologyFileEntry entry, boolean returnEntry) Gets the SisterHosts attribute of the TopologyFile objectGets the MasterEntry attribute of the TopologyFile objectgetPrimaryHostForCoop
(TopologyFileEntry coopEntry) Gets the PrimaryHostForCoop attribute of the TopologyFile objectGets the PrimaryHosts attribute of the TopologyFile objectgetRemoteHosts
(TopologyFileEntry entry) Gets the RemoteHosts attribute of the TopologyFile objectstatic boolean
isCoopHost
(TopologyFileEntry entry) Gets the CoopHost attribute of the TopologyFile classstatic boolean
isPrimaryHost
(TopologyFileEntry entry) Gets the PrimaryHost attribute of the TopologyFile classstatic boolean
Gets the ValidSystemType attribute of the TopologyFile classprotected void
load()
Method Descriptionprotected void
load
(BufferedReader reader) static void
void
reload
(boolean force)
-
Field Details
-
HOST_IP
Description- See Also:
-
HOST_NAME
Description- See Also:
-
HOST_USERID
Description- See Also:
-
HOST_COOP_TYPE
Description- See Also:
-
HOST_STARTUP_STATE
Description- See Also:
-
CWMS_SYSTEM_TYPE
Description- See Also:
-
HOST_COOP_SERVER_PORT
Description- See Also:
-
REMOTESERVER_COOP_HOSTIP
Description- See Also:
-
END_HOST
Description- See Also:
-
END_FILE
end of file marker. anything after this will be ignored- See Also:
-
PRIMARY_HOST_TYPE
Description- See Also:
-
COOP_HOST_TYPE
Description- See Also:
-
DB_SYS_TYPE
DataBase system type- See Also:
-
DA_SYS_TYPE
Data Acquisition system type- See Also:
-
MODELING_SYS_TYPE
modeling system type- See Also:
-
ACTIVE
the active startup state- See Also:
-
STANDBY
the standby startup state- See Also:
-
FILE_ENTRIES
Description
-
-
Constructor Details
-
TopologyFile
public TopologyFile()Create a new TopologyFile object -
TopologyFile
-
-
Method Details
-
getTopologyFile
-
reload
public void reload(boolean force) -
load
protected void load()Method Description -
load
-
getLocalHosts
Get the other local hosts for entry.- Parameters:
entry
- the entry to get other local hosts for. Will also return entry in the list- Returns:
-
getLocalHosts
Gets the SisterHosts attribute of the TopologyFile object- Parameters:
entry
- the TopologyFileEntry to get the other locals hosts forreturnEntry
- true to include entry in the list- Returns:
- The SisterHosts value
-
getRemoteHosts
Gets the RemoteHosts attribute of the TopologyFile object- Parameters:
entry
- Description- Returns:
- The RemoteHosts value
-
getPrimaryHosts
Gets the PrimaryHosts attribute of the TopologyFile object- Returns:
- The PrimaryHosts value
-
getCoopHosts
Gets the CoopHosts attribute of the TopologyFile object- Returns:
- The CoopHosts value
-
isValidSystemType
Gets the ValidSystemType attribute of the TopologyFile class- Parameters:
entry
- Description- Returns:
- The ValidSystemType value
-
getPrimaryHostForCoop
Gets the PrimaryHostForCoop attribute of the TopologyFile object- Parameters:
coopEntry
- Description- Returns:
- The PrimaryHostForCoop value
-
isPrimaryHost
Gets the PrimaryHost attribute of the TopologyFile class- Parameters:
entry
- Description- Returns:
- The PrimaryHost value
-
isCoopHost
Gets the CoopHost attribute of the TopologyFile class- Parameters:
entry
- Description- Returns:
- The CoopHost value
-
getMasterEntry
Gets the MasterEntry attribute of the TopologyFile object- Returns:
- The MasterEntry value
-
getEntryForIP
Gets the EntryForIP attribute of the TopologyFile object- Parameters:
ipAddress
- Description- Returns:
- The EntryForIP value
-
getEntryForName
Gets the EntryForName attribute of the TopologyFile object- Parameters:
name
- Description- Returns:
- The EntryForName value
-
main
- Parameters:
args
- The command line arguments
-
getLastPathPart
return the last path part to the topology.conf file. Currently /config/sys/topology.conf- Returns:
-