com.neeve.server.app
Interface ISrvAppWatcher


public interface ISrvAppWatcher

The interface through which application state changes can be watched.


Method Summary
 void onAppActive(String name)
          Notifies that an application has gone active.
 void onAppBusBindingCreated(String appName, String busName)
          Notifies that an application bus binding has been created.
 void onAppBusBindingDestroyed(String appName, String busName)
          Notifies that an application's bus binding has been destroyed (torn down).
 void onAppBusBindingFailed(String appName, String busName, String cause)
          Notifies that an application's bus binding has failed.
 void onAppBusBindingOpened(String appName, String busName)
          Notifies that an application bus binding is open and operational.
 void onAppBusBindingOpening(String appName, String busName)
          Notifies that an application bus binding is opening.
 void onAppChannelClosed(String appName, String busName, String channelName)
          Notifies that an application's channel has been closed.
 void onAppChannelOpened(String appName, String busName, String channelName, boolean joined)
          Notifies that an application's channel has been opened.
 void onAppClientConnected(String appName, String clientName)
          Notifies that an application's client has connected.
 void onAppClientDisconnected(String appName, String clientName)
          Notifies that an application's client has disconnected.
 void onAppFlowCreated(String appName, int flowid)
          Notifies that a new flow has been created for the application.
 void onAppInitialized(SrvAppLoader loader)
          Notifies that an application has been initialized.
 void onAppLoaded(SrvAppLoader loader)
          Notifies that an application has been loaded.
 void onAppStarted(String name)
          Notifies that an application has been started.
 void onAppStopped(String name)
          Notifies that an application has been stopped.
 void onAppUnloaded(String name)
          Notifies that an application has been unloaded.
 

Method Detail

onAppLoaded

void onAppLoaded(SrvAppLoader loader)
Notifies that an application has been loaded.

Parameters:
loader - The loaded application's loader.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

onAppInitialized

void onAppInitialized(SrvAppLoader loader)
Notifies that an application has been initialized.

Parameters:
loader - The initialized application's loader.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

onAppStarted

void onAppStarted(String name)
Notifies that an application has been started.

Parameters:
name - The started application's name.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine is started.


onAppActive

void onAppActive(String name)
Notifies that an application has gone active.

Parameters:
name - The active application's name.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine goes active i.e. when the application assumes the role of the primary application in its cluster.


onAppBusBindingCreated

void onAppBusBindingCreated(String appName,
                            String busName)
Notifies that an application bus binding has been created.

Parameters:
appName - The application's name.
busName - The name of the bus being bound to.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine establishes a bus binding on the application's behalf.


onAppBusBindingOpening

void onAppBusBindingOpening(String appName,
                            String busName)
Notifies that an application bus binding is opening.

Parameters:
appName - The application's name.
busName - The name of the bus bound to.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine commences opening a bus binding on the application's behalf.


onAppBusBindingOpened

void onAppBusBindingOpened(String appName,
                           String busName)
Notifies that an application bus binding is open and operational.

Parameters:
appName - The application's name.
busName - The name of the bus bound to.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine successfully opens a bus binding on the application's behalf.


onAppBusBindingFailed

void onAppBusBindingFailed(String appName,
                           String busName,
                           String cause)
Notifies that an application's bus binding has failed.

Parameters:
appName - The application's name.
busName - The name of the bus bound to.
cause - A string containing a description of the cause of failure.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine detects a failure in an application's bus binding.


onAppBusBindingDestroyed

void onAppBusBindingDestroyed(String appName,
                              String busName)
Notifies that an application's bus binding has been destroyed (torn down).

Parameters:
appName - The application's name.
busName - The name of the bus bound to.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine tears down a bus binding opened on the application's behalf.


onAppChannelOpened

void onAppChannelOpened(String appName,
                        String busName,
                        String channelName,
                        boolean joined)
Notifies that an application's channel has been opened.

Parameters:
appName - The application's name.
busName - The name of the bus containing the channel.
channelName - The name of the channel.
joined - Indicates whether the channel was joined or not.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine successfully opens a bus channel on the application's behalf.


onAppChannelClosed

void onAppChannelClosed(String appName,
                        String busName,
                        String channelName)
Notifies that an application's channel has been closed.

Parameters:
appName - The application's name.
busName - The name of the bus containing the channel.
channelName - The name of the channel.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine successfully closes a bus channel on the application's behalf.


onAppClientConnected

void onAppClientConnected(String appName,
                          String clientName)
Notifies that an application's client has connected.

Parameters:
appName - The application's name.
clientName - The name of the connected client.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

onAppClientDisconnected

void onAppClientDisconnected(String appName,
                             String clientName)
Notifies that an application's client has disconnected.

Parameters:
appName - The application's name.
clientName - The name of the disconnected client.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

onAppFlowCreated

void onAppFlowCreated(String appName,
                      int flowid)
Notifies that a new flow has been created for the application.

Parameters:
appName - The application's name.
flowid - The flow id.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

onAppStopped

void onAppStopped(String name)
Notifies that an application has been stopped.

Parameters:
name - The stopped application's name.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.

This method is invoked when an application's AEP engine is stopped.


onAppUnloaded

void onAppUnloaded(String name)
Notifies that an application has been unloaded.

Parameters:
name - The unloaded application's name.
Threading:
This method can be invoked concurrently by multiple threads with itself and other methods in this interface.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.