Class VHostList

Object
com.wowza.wms.vhost.VHostList

public class VHostList extends Object

VHostList: list of VHost items. Result of parsing VHosts.xml at server startup or VHosts.xml reload. This interface can keep track of reloads and carefully mark items for deletion.

  • Constructor Details

    • VHostList

      public VHostList()
      Create empty vHostList
  • Method Details

    • loadConfig

      public void loadConfig()
    • reloadConfig

      public void reloadConfig()
      Reload VHosts.xml file.
    • getVHostMap

      public Map<String,VHostItem> getVHostMap()
      Get the Map of vHostItem defintions.
      Returns:
      Map of vHostItem defintions
    • addVHostItemListener

      public void addVHostItemListener(IVHostItemNotify vHostItemListener)
      Add vHostItem listener. vHostItem listeners will receive the following events: onVHostItemCreate, onVHostItemUpdate, onVHostItemDestroy.
      Parameters:
      vHostItemListener - vHostItem listener
    • removeVHostItemListener

      public void removeVHostItemListener(IVHostItemNotify vHostItemListener)
      Remove vHostItem listener.
      Parameters:
      vHostItemListener - vHostItem listener
    • notifyVHostItemCreate

      public void notifyVHostItemCreate(VHostItem vhostItem)
      Notify vHostItem listener of item create.
      Parameters:
      vhostItem - vHostItem
    • notifyVHostItemUpdate

      public void notifyVHostItemUpdate(VHostItem vhostItem)
      Notify vHostItem listener of item update.
      Parameters:
      vhostItem - vHostItem
    • notifyVHostItemDestroy

      public void notifyVHostItemDestroy(VHostItem vhostItem)
      Notify vHostItem listener of item destroy.
      Parameters:
      vhostItem - vHostItem
    • getVHostNames

      public List<String> getVHostNames()
      Get a list of vHost names. Creates a copy of list.
      Returns:
      list of vHost names
    • getVHostItems

      public List<VHostItem> getVHostItems()
      Get a list of vHostItems. Create a shallow copy of list.
      Returns:
      list of vHostItems