Package hec.io

Class TopologyFileEntry

java.lang.Object
hec.io.TopologyFileEntry
All Implemented Interfaces:
Cloneable

public class TopologyFileEntry extends Object implements Cloneable
  • Method Summary

    Modifier and Type
    Method
    Description
    create a clone of this TopologyFileEntry
    boolean
    check to see if the TopologyFileEntry represents the same TopologyFileEntry as that
    boolean
    check to see if the TopologyFileEntry equals obj
    int
    Gets the Coop Server Port of the TopologyFileEntry
    Gets the Coop Type attribute of the TopologyFileEntry object one of TopologyFile.PRIMARY_HOST_TYPE or TopologyFile.COOP_HOST_TYPE
    Gets the IP Address of the TopologyFileEntry object
    Gets the Host Name of the TopologyFileEntry object
    Gets the Remote IP address of the TopologyFileEntry object
    Gets the Startup State attribute of the TopologyFileEntry object one of TopologyFile.ACTIVE or TopologyFile.STANDBY
    Gets the System Type of the TopologyFileEntry object comma separated list containing one or more of the following:
    TopologyFile.DB_SYS_TYPE
    TopologyFile.DA_SYS_TYPE
    TopologyFile.MODELING_SYS_TYPE
    Gets the UserId of the TopologyFileEntry
    int
    return the hashcode for this TopologyFileEntry
    boolean
    Gets whether this entry is a DA System
    boolean
    Gets whether this entry is a DB System
    boolean
    Gets whether this entry is a Modeling System
    boolean
    Gets whether this entry is a Primary Site
    boolean
    check whether this TopologyFileEntry is valid or not
    return the data that this TopologyFileEntry represents as a String
    return the string representation of this TopologyFileEntry

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getCoopServerPort

      public int getCoopServerPort()
      Gets the Coop Server Port of the TopologyFileEntry
      Returns:
      The Coop Server Port
    • getCoopType

      public String getCoopType()
      Gets the Coop Type attribute of the TopologyFileEntry object one of TopologyFile.PRIMARY_HOST_TYPE or TopologyFile.COOP_HOST_TYPE
      Returns:
      The CoopType value
    • getIpAddress

      public String getIpAddress()
      Gets the IP Address of the TopologyFileEntry object
      Returns:
      The IP Address
    • getName

      public String getName()
      Gets the Host Name of the TopologyFileEntry object
      Returns:
      The Host Name
    • getRemoteIp

      public String getRemoteIp()
      Gets the Remote IP address of the TopologyFileEntry object
      Returns:
      The Remote IP address
    • getStartupState

      public String getStartupState()
      Gets the Startup State attribute of the TopologyFileEntry object one of TopologyFile.ACTIVE or TopologyFile.STANDBY
      Returns:
      The StartupState value
    • getSystemType

      public String getSystemType()
      Gets the System Type of the TopologyFileEntry object comma separated list containing one or more of the following:
      TopologyFile.DB_SYS_TYPE
      TopologyFile.DA_SYS_TYPE
      TopologyFile.MODELING_SYS_TYPE
      Returns:
      The SystemType value
    • getUserId

      public String getUserId()
      Gets the UserId of the TopologyFileEntry
      Returns:
      The UserId
    • isPrimarySite

      public boolean isPrimarySite()
      Gets whether this entry is a Primary Site
      Returns:
      true if this TopologyFileEntry represents a Primary Site
    • isDASystem

      public boolean isDASystem()
      Gets whether this entry is a DA System
      Returns:
      true if this TopologyFileEntry represents a DA System
    • isDBSystem

      public boolean isDBSystem()
      Gets whether this entry is a DB System
      Returns:
      true if this TopologyFileEntry represents a DB System
    • isModelingSystem

      public boolean isModelingSystem()
      Gets whether this entry is a Modeling System
      Returns:
      true if this TopologyFileEntry represents a Modeling System
    • clone

      public Object clone()
      create a clone of this TopologyFileEntry
      Overrides:
      clone in class Object
      Returns:
      the cloned TopologyFileEntry
    • isValid

      public boolean isValid()
      check whether this TopologyFileEntry is valid or not
      Returns:
      true if this TopologyFileEntry is valid
    • toString

      public String toString()
      return the string representation of this TopologyFileEntry
      Overrides:
      toString in class Object
      Returns:
      the IP Address
    • paramString

      public String paramString()
      return the data that this TopologyFileEntry represents as a String
      Returns:
      the TopologyFileEntry as a String
    • equals

      public boolean equals(Object obj)
      check to see if the TopologyFileEntry equals obj
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare to
      Returns:
      true if the objects represent the same TopologyFileEntry
    • equals

      public boolean equals(TopologyFileEntry that)
      check to see if the TopologyFileEntry represents the same TopologyFileEntry as that
      Parameters:
      that - Description
      Returns:
      Description
    • hashCode

      public int hashCode()
      return the hashcode for this TopologyFileEntry
      Overrides:
      hashCode in class Object
      Returns:
      the ipAddress's hashcode