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 ClassesModifier and TypeClassDescriptionclass
class
class
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppInstance
(IVHost vhost, String appName, String appInstName) 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 Details
-
EVENTTYPE_STREAM_STOP
public static final int EVENTTYPE_STREAM_STOP- See Also:
-
EVENTTYPE_STREAM_START
public static final int EVENTTYPE_STREAM_START- See Also:
-
EVENTTYPE_APPLICATION_START
public static final int EVENTTYPE_APPLICATION_START- See Also:
-
-
Constructor Details
-
ServerListenerStreamDemoPublisher
public ServerListenerStreamDemoPublisher()
-
-
Method Details
-
onServerCreate
Description copied from interface:IServerNotify
Triggered when server object is first created.- Specified by:
onServerCreate
in interfaceIServerNotify
- Parameters:
server
- server object
-
onServerConfigLoaded
Description copied from interface:IServerNotify2
Triggered when server configuration is loaded- Specified by:
onServerConfigLoaded
in interfaceIServerNotify2
- Parameters:
server
- server object
-
onServerInit
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
Description copied from interface:IServerNotify
Triggered at the beginning of server shutdown- Specified by:
onServerShutdownStart
in interfaceIServerNotify
- Parameters:
server
- server object
-
onServerShutdownComplete
Description copied from interface:IServerNotify
Triggered at the end of server shutdown- Specified by:
onServerShutdownComplete
in interfaceIServerNotify
- Parameters:
server
- server object
-
onVHostCreate
Description copied from interface:IVHostNotify
Triggered when vHost created- Specified by:
onVHostCreate
in interfaceIVHostNotify
-
getServerPublisherMap
-
onVHostInit
Description copied from interface:IVHostNotify
Triggered when vHost initialized- Specified by:
onVHostInit
in interfaceIVHostNotify
- Parameters:
vhost
- vhost
-
onVHostShutdownStart
Description copied from interface:IVHostNotify
Triggered at the beginning of vhost shutdown- Specified by:
onVHostShutdownStart
in interfaceIVHostNotify
- Parameters:
vhost
- vhost
-
onVHostShutdownComplete
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
Description copied from interface:IApplicationInstanceNotify
Triggered when applicationInstance created- Specified by:
onApplicationInstanceCreate
in interfaceIApplicationInstanceNotify
- Parameters:
applicationInstance
- applicationInstance
-
onApplicationInstanceDestroy
Description copied from interface:IApplicationInstanceNotify
Triggered when applicationInstance destroyed- Specified by:
onApplicationInstanceDestroy
in interfaceIApplicationInstanceNotify
- Parameters:
applicationInstance
- applicationInstance
-
onApplicationCreate
Description copied from interface:IApplicationNotify
Triggered when application created- Specified by:
onApplicationCreate
in interfaceIApplicationNotify
- Parameters:
application
- application
-
onApplicationDestroy
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
-
startupPublisher
public void startupPublisher(IApplicationInstance applicationInstance, ServerListenerStreamDemoPublisher.DemoPublisher demoPublisher) -
shutdownPublisher
-