Package com.wowza.wms.vhost
Class VHostList
- Object
- 
- com.wowza.wms.vhost.VHostList
 
- 
 public class VHostList extends ObjectVHostList: 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 SummaryConstructors Constructor Description VHostList()Create empty vHostList
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVHostItemListener(IVHostItemNotify vHostItemListener)Add vHostItem listener.java.util.List<VHostItem>getVHostItems()Get a list of vHostItems.java.util.Map<String,VHostItem>getVHostMap()Get the Map of vHostItem defintions.java.util.List<String>getVHostNames()Get a list of vHost names.voidloadConfig()voidnotifyVHostItemCreate(VHostItem vhostItem)Notify vHostItem listener of item create.voidnotifyVHostItemDestroy(VHostItem vhostItem)Notify vHostItem listener of item destroy.voidnotifyVHostItemUpdate(VHostItem vhostItem)Notify vHostItem listener of item update.voidreloadConfig()Reload VHosts.xml file.voidremoveVHostItemListener(IVHostItemNotify vHostItemListener)Remove vHostItem listener.
 
- 
- 
- 
Method Detail- 
loadConfigpublic void loadConfig() 
 - 
reloadConfigpublic void reloadConfig() Reload VHosts.xml file.
 - 
getVHostMappublic java.util.Map<String,VHostItem> getVHostMap() Get the Map of vHostItem defintions.- Returns:
- Map of vHostItem defintions
 
 - 
addVHostItemListenerpublic void addVHostItemListener(IVHostItemNotify vHostItemListener) Add vHostItem listener. vHostItem listeners will receive the following events: onVHostItemCreate, onVHostItemUpdate, onVHostItemDestroy.- Parameters:
- vHostItemListener- vHostItem listener
 
 - 
removeVHostItemListenerpublic void removeVHostItemListener(IVHostItemNotify vHostItemListener) Remove vHostItem listener.- Parameters:
- vHostItemListener- vHostItem listener
 
 - 
notifyVHostItemCreatepublic void notifyVHostItemCreate(VHostItem vhostItem) Notify vHostItem listener of item create.- Parameters:
- vhostItem- vHostItem
 
 - 
notifyVHostItemUpdatepublic void notifyVHostItemUpdate(VHostItem vhostItem) Notify vHostItem listener of item update.- Parameters:
- vhostItem- vHostItem
 
 - 
notifyVHostItemDestroypublic void notifyVHostItemDestroy(VHostItem vhostItem) Notify vHostItem listener of item destroy.- Parameters:
- vhostItem- vHostItem
 
 - 
getVHostNamespublic java.util.List<String> getVHostNames() Get a list of vHost names. Creates a copy of list.- Returns:
- list of vHost names
 
 - 
getVHostItemspublic java.util.List<VHostItem> getVHostItems() Get a list of vHostItems. Create a shallow copy of list.- Returns:
- list of vHostItems
 
 
- 
 
-