Package com.wowza.wms.module
Class ServerListenerStreamDemoPublisher
- Object
-
- com.wowza.wms.module.ServerListenerStreamDemoPublisher
-
- All Implemented Interfaces:
IApplicationInstanceNotify
,IApplicationNotify
,IServerNotify
,IServerNotify2
,IVHostNotify
public class ServerListenerStreamDemoPublisher extends Object implements IServerNotify2, IVHostNotify, IApplicationNotify, IApplicationInstanceNotify
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ServerListenerStreamDemoPublisher.DemoPublisher
class
ServerListenerStreamDemoPublisher.DemoPublisherConfig
class
ServerListenerStreamDemoPublisher.ServerPublisherMap
class
ServerListenerStreamDemoPublisher.VHostPublishersMap
-
Field Summary
Fields Modifier and Type Field Description static int
EVENTTYPE_APPLICATION_START
static int
EVENTTYPE_STREAM_START
static int
EVENTTYPE_STREAM_STOP
-
Constructor Summary
Constructors Constructor Description ServerListenerStreamDemoPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IApplicationInstance
getAppInstance(IVHost vhost, ServerListenerStreamDemoPublisher.DemoPublisherConfig config)
IApplicationInstance
getAppInstance(IVHost vhost, String appName, String appInstName)
ServerListenerStreamDemoPublisher.ServerPublisherMap
getServerPublisherMap()
void
onApplicationCreate(IApplication application)
Triggered when application createdvoid
onApplicationDestroy(IApplication application)
Triggered when application destroyedvoid
onApplicationInstanceCreate(IApplicationInstance applicationInstance)
Triggered when applicationInstance createdvoid
onApplicationInstanceDestroy(IApplicationInstance applicationInstance)
Triggered when applicationInstance destroyedvoid
onServerConfigLoaded(IServer server)
Triggered when server configuration is loadedvoid
onServerCreate(IServer server)
Triggered when server object is first created.void
onServerInit(IServer server)
Triggered when server initialization is complete and all VHosts have been startedvoid
onServerShutdownComplete(IServer server)
Triggered at the end of server shutdownvoid
onServerShutdownStart(IServer server)
Triggered at the beginning of server shutdownvoid
onVHostClientConnect(IVHost vhost, IClient inClient, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Triggered before a client connects to this virtual host.void
onVHostCreate(IVHost vhost)
Triggered when vHost createdvoid
onVHostInit(IVHost vhost)
Triggered when vHost initializedvoid
onVHostShutdownComplete(IVHost vhost)
Triggered at the end of vhost shutdownvoid
onVHostShutdownStart(IVHost vhost)
Triggered at the beginning of vhost shutdownvoid
shutdownPublisher(ServerListenerStreamDemoPublisher.DemoPublisher demoPublisher)
void
startupPublisher(IApplicationInstance applicationInstance, ServerListenerStreamDemoPublisher.DemoPublisher demoPublisher)
-
-
-
Field Detail
-
EVENTTYPE_STREAM_STOP
public static final int EVENTTYPE_STREAM_STOP
- See Also:
- Constant Field Values
-
EVENTTYPE_STREAM_START
public static final int EVENTTYPE_STREAM_START
- See Also:
- Constant Field Values
-
EVENTTYPE_APPLICATION_START
public static final int EVENTTYPE_APPLICATION_START
- See Also:
- Constant Field Values
-
-
Method Detail
-
onServerCreate
public void onServerCreate(IServer server)
Description copied from interface:IServerNotify
Triggered when server object is first created.- Specified by:
onServerCreate
in interfaceIServerNotify
- Parameters:
server
- server object
-
onServerConfigLoaded
public void onServerConfigLoaded(IServer server)
Description copied from interface:IServerNotify2
Triggered when server configuration is loaded- Specified by:
onServerConfigLoaded
in interfaceIServerNotify2
- Parameters:
server
- server object
-
onServerInit
public void onServerInit(IServer server)
Description copied from interface:IServerNotify
Triggered when server initialization is complete and all VHosts have been started- Specified by:
onServerInit
in interfaceIServerNotify
- Parameters:
server
- server object
-
onServerShutdownStart
public void onServerShutdownStart(IServer server)
Description copied from interface:IServerNotify
Triggered at the beginning of server shutdown- Specified by:
onServerShutdownStart
in interfaceIServerNotify
- Parameters:
server
- server object
-
onServerShutdownComplete
public void onServerShutdownComplete(IServer server)
Description copied from interface:IServerNotify
Triggered at the end of server shutdown- Specified by:
onServerShutdownComplete
in interfaceIServerNotify
- Parameters:
server
- server object
-
onVHostCreate
public void onVHostCreate(IVHost vhost)
Description copied from interface:IVHostNotify
Triggered when vHost created- Specified by:
onVHostCreate
in interfaceIVHostNotify
-
getServerPublisherMap
public ServerListenerStreamDemoPublisher.ServerPublisherMap getServerPublisherMap()
-
onVHostInit
public void onVHostInit(IVHost vhost)
Description copied from interface:IVHostNotify
Triggered when vHost initialized- Specified by:
onVHostInit
in interfaceIVHostNotify
- Parameters:
vhost
- vhost
-
onVHostShutdownStart
public void onVHostShutdownStart(IVHost vhost)
Description copied from interface:IVHostNotify
Triggered at the beginning of vhost shutdown- Specified by:
onVHostShutdownStart
in interfaceIVHostNotify
- Parameters:
vhost
- vhost
-
onVHostShutdownComplete
public void onVHostShutdownComplete(IVHost vhost)
Description copied from interface:IVHostNotify
Triggered at the end of vhost shutdown- Specified by:
onVHostShutdownComplete
in interfaceIVHostNotify
- Parameters:
vhost
- vhost
-
onVHostClientConnect
public void onVHostClientConnect(IVHost vhost, IClient inClient, com.wowza.wms.request.RequestFunction function, AMFDataList params)
Description copied from interface:IVHostNotify
Triggered before a client connects to this virtual host. Provides an opportunity to rewrite the information that is being used to connect.- Specified by:
onVHostClientConnect
in interfaceIVHostNotify
inClient
- client object of the connectionfunction
- functionparams
- parameters
-
onApplicationInstanceCreate
public void onApplicationInstanceCreate(IApplicationInstance applicationInstance)
Description copied from interface:IApplicationInstanceNotify
Triggered when applicationInstance created- Specified by:
onApplicationInstanceCreate
in interfaceIApplicationInstanceNotify
- Parameters:
applicationInstance
- applicationInstance
-
onApplicationInstanceDestroy
public void onApplicationInstanceDestroy(IApplicationInstance applicationInstance)
Description copied from interface:IApplicationInstanceNotify
Triggered when applicationInstance destroyed- Specified by:
onApplicationInstanceDestroy
in interfaceIApplicationInstanceNotify
- Parameters:
applicationInstance
- applicationInstance
-
onApplicationCreate
public void onApplicationCreate(IApplication application)
Description copied from interface:IApplicationNotify
Triggered when application created- Specified by:
onApplicationCreate
in interfaceIApplicationNotify
- Parameters:
application
- application
-
onApplicationDestroy
public void onApplicationDestroy(IApplication application)
Description copied from interface:IApplicationNotify
Triggered when application destroyed- Specified by:
onApplicationDestroy
in interfaceIApplicationNotify
- Parameters:
application
- application
-
getAppInstance
public IApplicationInstance getAppInstance(IVHost vhost, ServerListenerStreamDemoPublisher.DemoPublisherConfig config)
-
getAppInstance
public IApplicationInstance getAppInstance(IVHost vhost, String appName, String appInstName)
-
startupPublisher
public void startupPublisher(IApplicationInstance applicationInstance, ServerListenerStreamDemoPublisher.DemoPublisher demoPublisher)
-
shutdownPublisher
public void shutdownPublisher(ServerListenerStreamDemoPublisher.DemoPublisher demoPublisher)
-
-