Package hec.io

Class TopologyFile

java.lang.Object
hec.io.TopologyFile

public class TopologyFile extends Object
  • Field Details

  • Constructor Details

    • TopologyFile

      public TopologyFile()
      Create a new TopologyFile object
    • TopologyFile

      public TopologyFile(HecFile file)
  • Method Details

    • getTopologyFile

      public File getTopologyFile()
    • reload

      public void reload(boolean force)
    • load

      protected void load()
      Method Description
    • load

      protected void load(BufferedReader reader)
    • getLocalHosts

      public List getLocalHosts(TopologyFileEntry entry)
      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

      public List getLocalHosts(TopologyFileEntry entry, boolean returnEntry)
      Gets the SisterHosts attribute of the TopologyFile object
      Parameters:
      entry - the TopologyFileEntry to get the other locals hosts for
      returnEntry - true to include entry in the list
      Returns:
      The SisterHosts value
    • getRemoteHosts

      public List getRemoteHosts(TopologyFileEntry entry)
      Gets the RemoteHosts attribute of the TopologyFile object
      Parameters:
      entry - Description
      Returns:
      The RemoteHosts value
    • getPrimaryHosts

      public List getPrimaryHosts()
      Gets the PrimaryHosts attribute of the TopologyFile object
      Returns:
      The PrimaryHosts value
    • getCoopHosts

      public List getCoopHosts()
      Gets the CoopHosts attribute of the TopologyFile object
      Returns:
      The CoopHosts value
    • isValidSystemType

      public static boolean isValidSystemType(TopologyFileEntry entry)
      Gets the ValidSystemType attribute of the TopologyFile class
      Parameters:
      entry - Description
      Returns:
      The ValidSystemType value
    • getPrimaryHostForCoop

      public TopologyFileEntry getPrimaryHostForCoop(TopologyFileEntry coopEntry)
      Gets the PrimaryHostForCoop attribute of the TopologyFile object
      Parameters:
      coopEntry - Description
      Returns:
      The PrimaryHostForCoop value
    • isPrimaryHost

      public static boolean isPrimaryHost(TopologyFileEntry entry)
      Gets the PrimaryHost attribute of the TopologyFile class
      Parameters:
      entry - Description
      Returns:
      The PrimaryHost value
    • isCoopHost

      public static boolean isCoopHost(TopologyFileEntry entry)
      Gets the CoopHost attribute of the TopologyFile class
      Parameters:
      entry - Description
      Returns:
      The CoopHost value
    • getMasterEntry

      public TopologyFileEntry getMasterEntry()
      Gets the MasterEntry attribute of the TopologyFile object
      Returns:
      The MasterEntry value
    • getEntryForIP

      public TopologyFileEntry getEntryForIP(String ipAddress)
      Gets the EntryForIP attribute of the TopologyFile object
      Parameters:
      ipAddress - Description
      Returns:
      The EntryForIP value
    • getEntryForName

      public TopologyFileEntry getEntryForName(String name)
      Gets the EntryForName attribute of the TopologyFile object
      Parameters:
      name - Description
      Returns:
      The EntryForName value
    • main

      public static void main(String[] args)
      Parameters:
      args - The command line arguments
    • getLastPathPart

      public static String getLastPathPart()
      return the last path part to the topology.conf file. Currently /config/sys/topology.conf
      Returns: