public abstract class AbstractMonitorFactory extends AbstractServiceConfigurationFactory<DataItemMonitor> implements AknHandler
AbstractServiceConfigurationFactory.Entry<T>| Modifier and Type | Field and Description |
|---|---|
protected BundleContext |
context |
protected EventProcessor |
eventProcessor |
| Constructor and Description |
|---|
AbstractMonitorFactory(BundleContext context,
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acknowledge(java.lang.String monitorId,
OperationParameters operationParameters,
java.util.Date aknTimestamp)
Perform acknowledge of monitor
|
protected abstract DataItemMonitor |
createInstance(java.lang.String configurationId,
EventProcessor eventProcessor) |
protected AbstractServiceConfigurationFactory.Entry<DataItemMonitor> |
createService(UserInformation userInformation,
java.lang.String configurationId,
BundleContext context,
java.util.Map<java.lang.String,java.lang.String> parameters)
Create a new service instance
|
protected void |
disposeService(UserInformation userInformation,
java.lang.String id,
DataItemMonitor service)
Dispose a service
|
protected AbstractServiceConfigurationFactory.Entry<DataItemMonitor> |
updateService(UserInformation userInformation,
java.lang.String configurationId,
AbstractServiceConfigurationFactory.Entry<DataItemMonitor> entry,
java.util.Map<java.lang.String,java.lang.String> parameters)
Update a service configuration
|
delete, dispose, getService, unregisterService, updateprotected final BundleContext context
protected final EventProcessor eventProcessor
public AbstractMonitorFactory(BundleContext context,
servicePool,
EventProcessor eventProcessor)
protected abstract DataItemMonitor createInstance(java.lang.String configurationId, EventProcessor eventProcessor)
protected AbstractServiceConfigurationFactory.Entry<DataItemMonitor> createService(UserInformation userInformation, java.lang.String configurationId, BundleContext context, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
AbstractServiceConfigurationFactoryThe method must also register the service with the OSGi bundle context if needed. The service registration must then be placed into the result that is returned. This is an optional step. There is no need to register the created service.
createService in class AbstractServiceConfigurationFactory<DataItemMonitor>configurationId - the configuration id for which the service should be createdcontext - the bundle contextparameters - the initial parametersnulljava.lang.Exception - if anything goes wrongprotected void disposeService(UserInformation userInformation,
java.lang.String id,
DataItemMonitor service)
AbstractServiceConfigurationFactoryIf the service entry contains a service handle, the service is automatically unregistered.
disposeService in class AbstractServiceConfigurationFactory<DataItemMonitor>protected AbstractServiceConfigurationFactory.Entry<DataItemMonitor> updateService(UserInformation userInformation, java.lang.String configurationId, AbstractServiceConfigurationFactory.Entry<DataItemMonitor> entry, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
AbstractServiceConfigurationFactoryIf a new service entry is returned the old one will get disposed after the call returns
updateService in class AbstractServiceConfigurationFactory<DataItemMonitor>configurationId - the configuration to updateentry - the original service entryparameters - the new parametersnull if the entry did not
changejava.lang.Exception - if anything goes wrongpublic boolean acknowledge(java.lang.String monitorId,
OperationParameters operationParameters,
java.util.Date aknTimestamp)
AknHandleracknowledge in interface AknHandlermonitorId - the monitor to acknowledgeoperationParameters - the effective operation parametersaknTimestamp - the timestamp until which the state is acknowledgedtrue if the monitor was found and processed,
false otherwise
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0