Package com.wowza.wms.application
Interface IApplication
- 
 public interface IApplicationIApplication: public interface to Application object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_APPLICATION_NAME
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddApplicationInstanceListener(IApplicationInstanceNotify applicationInstanceListener)Add applicationInstance listener.IOPerformanceCounteraddIOPerformance(int counterIndex, IOPerformanceCounter totalIOPerformanceResult)IOPerformanceCounteraddIOPerformance(IOPerformanceCounter totalIOPerformanceResult)IApplicationInstancegetAppInstance(String name)Get applicationInstance object by name.IApplicationInstancegetAppInstance(String name, boolean doLoad)Get applicationInstance object by name and optionally load it if it was not already loaded.java.util.List<String>getAppInstanceNames()Get a list of application instance namesStringgetApplicationPath()Get the root path for applicationStringgetConfigPath()Get full path to Application.xml fileConnectionCountergetConnectionCounter()Get the connectionCounter for applicationcom.wowza.wms.client.ConnectionCounterSimplegetConnectionCounter(int counterIndex)Get the connectionCounter for application for application for a specific technology (see IVHost.COUNTER_*)StringgetDateStarted()Get date application startedintgetInstanceCount()IOPerformanceCountergetIoPerformanceCounter()Get the performance counter for applicationIOPerformanceCountergetIoPerformanceCounter(int counterIndex)Get the performance counter for application for a specific technology (see IVHost.COUNTER_*)StringgetName()Get the name of applicationWMSPropertiesgetProperties()Get application propertiesvoidgetProtocolUsage(boolean[] protocolsInUse)Get the protocols in use by this application instance (see IApplicationInstance.PROTCOLUSAGE_*)StringgetTimeRunning()Get time application runningdoublegetTimeRunningSeconds()Get time running in secondsIVHostgetVHost()Get the parent vHost objectbooleanisAppInstanceLoaded(String name)Return true if application instance is loadedbooleanisRunning()Returns true if the application is in running stateStringreadAppConfig(String sName)Method to read xml config file..voidremoveAppInstance(IApplicationInstance appInstance)Disconnect all clients connected to an application instance and remove it from the IApplication application list.voidremoveApplicationInstanceListener(IApplicationInstanceNotify applicationInstanceListener)Remove applicationInstance listener.voidsetName(String name)Set name of applicationvoidsetRunningToFalse()voidshutdown(boolean isServerShutdown)shutdown applicationvoidshutdownAppInstance(String appInstanceName)Shutdown an application instance by name.IOPerformanceCounterupdateIOPerformance()booleanwriteAppConfig(String sName, String data)Method to write xml config file..
 
- 
- 
- 
Field Detail- 
DEFAULT_APPLICATION_NAMEstatic final String DEFAULT_APPLICATION_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
shutdownvoid shutdown(boolean isServerShutdown) shutdown application- Parameters:
- isServerShutdown- true if due to shutdown of server
 
 - 
getApplicationPathString getApplicationPath() Get the root path for application- Returns:
- root path for application
 
 - 
getConfigPathString getConfigPath() Get full path to Application.xml file- Returns:
- full path to Application.xml file
 
 - 
getAppInstanceIApplicationInstance getAppInstance(String name) Get applicationInstance object by name. Loads application instance if it was not already loaded.- Parameters:
- name- applicationInstance name
- Returns:
- appliationInstance object
 
 - 
getAppInstanceIApplicationInstance getAppInstance(String name, boolean doLoad) Get applicationInstance object by name and optionally load it if it was not already loaded.- Parameters:
- name- applicationInstance name
- doLoad- when true, will load application instance if it was not already loaded.
- Returns:
- appliationInstance object
 
 - 
isAppInstanceLoadedboolean isAppInstanceLoaded(String name) Return true if application instance is loaded- Parameters:
- name- applicationInstance name
- Returns:
- true if application instance is loaded
 
 - 
getNameString getName() Get the name of application- Returns:
- name of application
 
 - 
setNamevoid setName(String name) Set name of application- Parameters:
- name- name of application
 
 - 
getVHostIVHost getVHost() Get the parent vHost object- Returns:
- parent vHost
 
 - 
getPropertiesWMSProperties getProperties() Get application properties- Returns:
- application properties
 
 - 
addApplicationInstanceListenervoid addApplicationInstanceListener(IApplicationInstanceNotify applicationInstanceListener) Add applicationInstance listener. Will be invoked each time applicationInstance created/deleted- Parameters:
- applicationInstanceListener- applicationInstance listener
 
 - 
removeApplicationInstanceListenervoid removeApplicationInstanceListener(IApplicationInstanceNotify applicationInstanceListener) Remove applicationInstance listener. Will be invoked each time applicationInstance created/deleted- Parameters:
- applicationInstanceListener- applicationInstance listener
 
 - 
updateIOPerformanceIOPerformanceCounter updateIOPerformance() 
 - 
addIOPerformanceIOPerformanceCounter addIOPerformance(IOPerformanceCounter totalIOPerformanceResult) 
 - 
addIOPerformanceIOPerformanceCounter addIOPerformance(int counterIndex, IOPerformanceCounter totalIOPerformanceResult) 
 - 
getConnectionCounterConnectionCounter getConnectionCounter() Get the connectionCounter for application- Returns:
- connectionCounter for application
 
 - 
getConnectionCountercom.wowza.wms.client.ConnectionCounterSimple getConnectionCounter(int counterIndex) Get the connectionCounter for application for application for a specific technology (see IVHost.COUNTER_*)- Parameters:
- counterIndex- counter index (see IVHost.COUNTER_*)
- Returns:
- connection ocunter
 
 - 
getIoPerformanceCounterIOPerformanceCounter getIoPerformanceCounter() Get the performance counter for application- Returns:
- performance counter for application
 
 - 
getIoPerformanceCounterIOPerformanceCounter getIoPerformanceCounter(int counterIndex) Get the performance counter for application for a specific technology (see IVHost.COUNTER_*)- Parameters:
- counterIndex- counter index (see IVHost.COUNTER_*)
- Returns:
- performance counter
 
 - 
getDateStartedString getDateStarted() Get date application started- Returns:
- date application started
 
 - 
getTimeRunningString getTimeRunning() Get time application running- Returns:
- time application running
 
 - 
getTimeRunningSecondsdouble getTimeRunningSeconds() Get time running in seconds- Returns:
- time running in seconds
 
 - 
getInstanceCountint getInstanceCount() 
 - 
getAppInstanceNamesjava.util.List<String> getAppInstanceNames() Get a list of application instance names- Returns:
- list of application instance names
 
 - 
removeAppInstancevoid removeAppInstance(IApplicationInstance appInstance) Disconnect all clients connected to an application instance and remove it from the IApplication application list. The proper way to call this is:public void shutdownAppInstance(IApplicationInstance appInstance) { IVHost vhost = appInstance.getVHost(); IApplication app = appInstance.getApplication(); WMSReadWriteLock appLock = vhost.getApplicationLock(); appLock.writeLock().lock(); try { app.removeAppInstance(appInstance); } catch (Exception e) { WMSLoggerFactory.getLogger(Application.class).error("Application.shutdownAppInstance ", e); } finally { appLock.writeLock().unlock(); } }- Parameters:
- appInstance- application instance to remove
 
 - 
shutdownAppInstancevoid shutdownAppInstance(String appInstanceName) Shutdown an application instance by name. This will disconnect all clients connected to this application instance.- Parameters:
- appInstanceName- application instance name
 
 - 
readAppConfigString readAppConfig(String sName) Method to read xml config file..
 - 
writeAppConfigboolean writeAppConfig(String sName, String data)Method to write xml config file..
 - 
getProtocolUsagevoid getProtocolUsage(boolean[] protocolsInUse) Get the protocols in use by this application instance (see IApplicationInstance.PROTCOLUSAGE_*)
 - 
setRunningToFalsevoid setRunningToFalse() 
 - 
isRunningboolean isRunning() Returns true if the application is in running state- Returns:
- true if the application is in running state
 
 
- 
 
-