Package com.wowza.wms.vhost
Class VHostList
Object
com.wowza.wms.vhost.VHostList
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVHostItemListener(IVHostItemNotify vHostItemListener) Add vHostItem listener.Get a list of vHostItems.Get the Map of vHostItem defintions.Get a list of vHost names.voidvoidnotifyVHostItemCreate(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.voidReload VHosts.xml file.voidremoveVHostItemListener(IVHostItemNotify vHostItemListener) Remove vHostItem listener.
-
Constructor Details
-
VHostList
public VHostList()Create empty vHostList
-
-
Method Details
-
loadConfig
public void loadConfig() -
reloadConfig
public void reloadConfig()Reload VHosts.xml file. -
getVHostMap
Get the Map of vHostItem defintions.- Returns:
- Map of vHostItem defintions
-
addVHostItemListener
Add vHostItem listener. vHostItem listeners will receive the following events: onVHostItemCreate, onVHostItemUpdate, onVHostItemDestroy.- Parameters:
vHostItemListener- vHostItem listener
-
removeVHostItemListener
Remove vHostItem listener.- Parameters:
vHostItemListener- vHostItem listener
-
notifyVHostItemCreate
Notify vHostItem listener of item create.- Parameters:
vhostItem- vHostItem
-
notifyVHostItemUpdate
Notify vHostItem listener of item update.- Parameters:
vhostItem- vHostItem
-
notifyVHostItemDestroy
Notify vHostItem listener of item destroy.- Parameters:
vhostItem- vHostItem
-
getVHostNames
Get a list of vHost names. Creates a copy of list.- Returns:
- list of vHost names
-
getVHostItems
Get a list of vHostItems. Create a shallow copy of list.- Returns:
- list of vHostItems
-