public class MonitorNotificationServiceFactoryCreator
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_IMPL
This definition configures the behaviour that is applicable for a wide range of clients.
|
static java.lang.String |
HUMAN_CONSUMER_IMPL
This definition configures the behaviour for a client that does not mind dropping intermediate events to keep up
with the notification rate.
|
static java.lang.String |
MACHINE_CONSUMER_IMPL
This definition configures the behaviour for a client which requires events to be buffered to keep up with the
notification rate during busy periods.
|
static int |
NOTIFICATION_VALUE_BUFFER_SIZE_DEFAULT
The size of the notification value buffer which will be used by default.
|
static int |
NUMBER_OF_SERVICE_THREADS_DEFAULT
The number of service threads that will be used by default for service implementations which require
more than one thread.
|
static java.lang.String |
V1_1_0_DEFAULT_IMPL
This definition configures the behaviour of the CA library V_1_1_0 release.
|
| Constructor and Description |
|---|
MonitorNotificationServiceFactoryCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static MonitorNotificationServiceFactory |
create(java.lang.String serviceConfiguration)
Constructs a factory which will generate service instances based on the
specified service implementation.
|
static java.util.List<java.lang.String> |
getAllServiceImplementations()
Returns a list of all service implementations recognised by this factory.
|
static long |
getServiceCount() |
static void |
shutdownExecutor(java.util.concurrent.ExecutorService executorService)
Utility method to cleanly shutdown an ExecutorService
|
public static final java.lang.String V1_1_0_DEFAULT_IMPL
public static final java.lang.String DEFAULT_IMPL
public static final java.lang.String HUMAN_CONSUMER_IMPL
public static final java.lang.String MACHINE_CONSUMER_IMPL
public static final int NUMBER_OF_SERVICE_THREADS_DEFAULT
public static final int NOTIFICATION_VALUE_BUFFER_SIZE_DEFAULT
public MonitorNotificationServiceFactoryCreator()
public static MonitorNotificationServiceFactory create(java.lang.String serviceConfiguration)
serviceConfiguration - specifies the properties of the service instances that
this factory will generate.java.lang.IllegalArgumentException - if the serviceImpl string was of the
incorrect format.public void close()
close in interface java.lang.AutoCloseablepublic static java.util.List<java.lang.String> getAllServiceImplementations()
public static long getServiceCount()
public static void shutdownExecutor(java.util.concurrent.ExecutorService executorService)
executorService - the service to shut down.