public class CyclicOptimiserClient extends Object implements org.osgi.service.event.EventHandler, org.osgi.framework.ServiceListener
| Modifier and Type | Field and Description |
|---|---|
static String |
CDOCONFIGID
Filename of the cdo configuration file which is watched by the Felix Fileinstaller The file
is located in eu.cactosfp7.configuration
|
static CyclicOptimiserClient |
INSTANCE |
| Constructor and Description |
|---|
CyclicOptimiserClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindCdoSessionService(CdoSessionService cdoSessionService)
Bind method for discovered service.
|
void |
bindOptimisationService(OptimisationServiceRegistry optimisationService)
Bind the optimisation service to be used by
this. |
void |
bindVmiService(IVMIService vmiService)
Bind method for discovered VMI service.
|
void |
handleEvent(org.osgi.service.event.Event event)
Notifies the cyclic optimiser.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
void |
unbindCdoSessionService(CdoSessionService service)
Unbind method for discovered service.
|
void |
unbindOptimisationService(OptimisationServiceRegistry optimisationService)
Unbind the optimisation service used by the cyclic optimiser.
|
void |
unbindVmiService(IVMIService vmiService)
Unbind the VMI service.
|
public static CyclicOptimiserClient INSTANCE
public static final String CDOCONFIGID
public void bindCdoSessionService(CdoSessionService cdoSessionService)
service - The discovered service.public void unbindCdoSessionService(CdoSessionService service)
service - The removed service.public void bindVmiService(IVMIService vmiService)
vmiService - The discovered VMI service.public void unbindVmiService(IVMIService vmiService)
vmiService - The VMI service to be disconnected.public void bindOptimisationService(OptimisationServiceRegistry optimisationService)
this.optimisationService - The optimisation service to be used.public void unbindOptimisationService(OptimisationServiceRegistry optimisationService)
optimisationService - The service that is unbound. this only enacts the
unbinding if the service to be disconnected equals the set service.public void handleEvent(org.osgi.service.event.Event event)
bindCdoSessionService(CdoSessionService). If the CDO session service
has been initialised, the cyclic optimiser will be started.handleEvent in interface org.osgi.service.event.EventHandlerevent - The triggered event.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListener