Package com.wowza.wms.vhost
Class VHostSingleton
- Object
- 
- com.wowza.wms.vhost.VHostSingleton
 
- 
 public class VHostSingleton extends ObjectVHostSingleton: singleton that provide access to running vHosts. 
- 
- 
Constructor SummaryConstructors Constructor Description VHostSingleton()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddVHostListener(IVHostNotify vhostListener)Add a vHost listener.static IVHostgetInstance(String vhostName)Get vHost by name.static IVHostgetInstance(String vhostName, boolean doCreate)Get vHost by name.static java.util.ListgetVHostNames()Get a list of vHost names.static voidinit(String vhostName, String configHome)Initialize vhost by name.static voidnotifyVHostClientConnect(IVHost vhost, IClient inClient, com.wowza.wms.request.RequestFunction function, AMFDataList params)Notify vhost client connectstatic voidnotifyVHostCreate(IVHost vhost)Notify vHost listener of create.static voidnotifyVHostInit(IVHost vhost)Notify vHost listener of ini.static voidnotifyVHostShutdownComplete(IVHost vhost)Notify vHost listener of destruction.static voidnotifyVHostShutdownStart(IVHost vhost)Notify vHost listener of destruction.static voidremove(String vhostName)Remove a vHost from list of running vHosts.static voidremoveApplicationListener(IVHostNotify vhostListener)Remove vHost listenerstatic voidsetServer(IServer server)Set a reference to the current running server.static voidshutdown(String vhostName)Shutdown a vHost by name.
 
- 
- 
- 
Method Detail- 
getInstancepublic static IVHost getInstance(String vhostName) Get vHost by name. Do NOT create if does not exist.- Parameters:
- vhostName- vHost name
- Returns:
- vHost
 
 - 
getInstancepublic static IVHost getInstance(String vhostName, boolean doCreate) Get vHost by name. Create if does not exist.- Parameters:
- vhostName- vhost name
- doCreate- if true, create if does not exist
- Returns:
- vHost
 
 - 
initpublic static void init(String vhostName, String configHome)Initialize vhost by name.- Parameters:
- vhostName- vHost name
- configHome- configuration path, path to VHost.xml
 
 - 
setServerpublic static void setServer(IServer server) Set a reference to the current running server.- Parameters:
- server- server
 
 - 
shutdownpublic static void shutdown(String vhostName) Shutdown a vHost by name.- Parameters:
- vhostName- vhost name
 
 - 
getVHostNamespublic static java.util.List getVHostNames() Get a list of vHost names. Return copy of list.- Returns:
- vHost names
 
 - 
removepublic static void remove(String vhostName) Remove a vHost from list of running vHosts.- Parameters:
- vhostName- vhost name
 
 - 
addVHostListenerpublic static void addVHostListener(IVHostNotify vhostListener) Add a vHost listener. A vHost listener receives the following events: onVHostCreate, onVHostInit, onVHostDestroy- Parameters:
- vhostListener- vHost listener
 
 - 
removeApplicationListenerpublic static void removeApplicationListener(IVHostNotify vhostListener) Remove vHost listener- Parameters:
- vhostListener- vHost listener
 
 - 
notifyVHostClientConnectpublic static void notifyVHostClientConnect(IVHost vhost, IClient inClient, com.wowza.wms.request.RequestFunction function, AMFDataList params) Notify vhost client connect- Parameters:
- vhost- vHost
- inClient- client
- function- function
- params- parameters
 
 - 
notifyVHostCreatepublic static void notifyVHostCreate(IVHost vhost) Notify vHost listener of create.- Parameters:
- vhost- vHost
 
 - 
notifyVHostInitpublic static void notifyVHostInit(IVHost vhost) Notify vHost listener of ini.- Parameters:
- vhost- vHost
 
 - 
notifyVHostShutdownStartpublic static void notifyVHostShutdownStart(IVHost vhost) Notify vHost listener of destruction.- Parameters:
- vhost- vHost
 
 - 
notifyVHostShutdownCompletepublic static void notifyVHostShutdownComplete(IVHost vhost) Notify vHost listener of destruction.- Parameters:
- vhost- vHost
 
 
- 
 
-