de.unikassel.android.sdcframework.service
Class ServiceManagerImpl

Package class diagram package ServiceManagerImpl
java.lang.Object
  extended by de.unikassel.android.sdcframework.util.LifeCycleObjectImpl
      extended by de.unikassel.android.sdcframework.service.ServiceManagerImpl
All Implemented Interfaces:
ServiceManager, EventObserver<BatteryLowEvent>, LifeCycleObject

public final class ServiceManagerImpl
extends LifeCycleObjectImpl
implements ServiceManager, EventObserver<BatteryLowEvent>

The Implementation of the sensor data collection service manager.

The service manager does maintain the available framework components for the service.
The main features are


Field Summary
private  BatteryLowStateObserver batteryLowObserver
          The battery low state observer.
private  AtomicInteger broadcastsEnabledCounter
          Counter for requests to enable sample broadcasts.
private  DatabaseManager dbManager
          The database manager.
private  EventObserver<SensorDeviceConfigurationChangeEvent> deviceConfigEventObserver
          The sensor device configuration change event observer.
private  SensorDeviceManager deviceManager
          The sensor device manager.
private  EventObserver<TransferEvent> fileTransferObserver
          The file transfer event observer.
private  boolean isCreated
          Flag for creation state.
private  EventObserver<LogLevelConfigurationChangeEvent> logLevelConfigEventObserver
          The log level change event observer.
private static String LOW_BATTERY_MSG
          The low on battery shutdown message.
static int NOTIFICATION
          The notification id.
private  ApplicationPreferenceManager preferenceManager
          The preference manager.
private  SampleBroadcastService sampleBroadcastService
          The sample broadcast service.
private  SDCService service
          The SDC service.
private  ServiceConfiguration serviceConfig
          The service configuration.
private  EventObserver<ServiceConfigurationChangeEvent> serviceConfigEventObserver
          The service configuration change event observer.
private  PersistentStorageManager storageManager
          The persistent storage manager.
private  TimeProviderErrorStrategy timeErrorStrategy
          The time provider error strategy.
private  EventObserver<TimeProviderConfigurationChangeEvent> timeProviderConfigEventObserver
          The time provider change event observer.
private  EventObserver<TimeProviderEvent> timeProviderEventObserver
          The time provider event observer.
private  TransferManager transferManager
          The sample transfer manager.
private  AtomicBoolean transferStateNeedsReset
          Flag to mirror the expected transfer enabled state, for the duration of a manual triggered sample transfer.
private  PowerManager.WakeLock wakeLock
          The wake lock to keep CPU running while service is active.
 
Constructor Summary
ServiceManagerImpl(Class<?> controlActivityClass)
          Constructor
 
Method Summary
private  void acquireWakeLock()
          Does acquire the wake lock
private  void attachEventObserversForConfigurationChanges()
          Does attach event observers for configuration changes
private  void attachTimeProviderEventObserver()
          Does attach the event observer for time provider events
 void createDatabaseManager(Context applicationContext, String dbName)
          Method to create the database manager
private  void createStorageManager(Context applicationContext)
          Method to create and configure the storage manager
 void createTransferManager(Context applicationContext)
          Method to create and configure the transfer manager
 void doChangeBroadcastServiceState(boolean doEnable)
          Method to change the broadcast state of the service
 void doEnableSampleBroadCasting(boolean doEnable)
          Does enable or disable the sample broadcast feature
 void doEnableSampleStorage(boolean doEnable)
          Does change the persistent storage enabled state.
 void doEnableSampleTransfer(boolean doEnable)
          Does change the sample transfer activation state.
 void doEnableSampling(boolean doEnable)
          Does activate or deactivate the sampling process for the running service.
 void doTriggerSampleTransfer()
          Does manually trigger an instant sample transfer ( with a short delay ).
private  BatteryLowStateObserver getBatteryLowObserver()
           
 Context getContext()
          Getter for the service/application context
private  DatabaseManager getDbManager()
          Getter for the dbManager
private  EventObserver<SensorDeviceConfigurationChangeEvent> getDeviceConfigurationEventObserver()
          Getter for the sensor device configuration event observer
private  EventObserver<TransferEvent> getFileTransferObserver()
          Getter for the fileTransferObserver
private  EventObserver<LogLevelConfigurationChangeEvent> getLogLevelConfigEventObserver()
          Getter for the log level configuration event observer
 ApplicationPreferenceManager getPreferenceManager()
          Getter for the application preference manager
private  SampleBroadcastService getSampleBroadcastService()
          Getter for the sample broadcast service
 SDCService getSDCService()
          Getter for the SDC service
 SensorDeviceManager getSensorDeviceManager()
          Getter for the sensor device manager
 ServiceConfiguration getServiceConfig()
          Getter for the serviceConfig
 EventObserver<ServiceConfigurationChangeEvent> getServiceConfigEventObserver()
          Getter for the serviceConfigEventObserver
private  PersistentStorageManager getStorageManager()
          Getter for the storageManager
private  EventObserver<TimeProviderConfigurationChangeEvent> getTimeProviderConfigEventObserver()
          Getter for the time provider configuration event observer
 EventObserver<TimeProviderEvent> getTimeProviderEventObserver()
          Getter for the timeProviderEventObserver
 TransferManager getTransferManager()
          Getter for the transferManager
private  UUID getUUID(Context applicationContext)
          Getter for the device identifier unique per service installation
private  PowerManager.WakeLock getWakeLock()
          Getter for the wake lock
private  void handleDeviceConfigurationChange(SensorDeviceConfigurationChangeEvent deviceChangeEvent)
          Handler for sensor device configuration changes
private  void handleLogLevelConfigurationChange(LogLevelConfigurationChangeEvent loglevelChangeEvent)
          Handler for log level configuration changes
protected  void handleServiceConfigurationChange(ServiceConfigurationChangeEvent observedEvent)
          Handler for service configuration changes
protected  void handleTimeProviderConfigurationChange(TimeProviderConfigurationChangeEvent observedEvent)
          Handler for time provider configuration changes
private  void handleTimeProviderEvent(TimeProviderEvent event)
          Handler for time provider events
protected  boolean isCreated()
          Getter for the created flag
 void onCreate(Context applicationContext)
          Creation method
 void onDestroy(Context applicationContext)
          Destroy method
 void onEvent(ObservableEventSource<? extends BatteryLowEvent> eventSource, BatteryLowEvent observedEvent)
          This method is called whenever the observed object does create an observed event
 void onPause(Context applicationContext)
          Pause method
 void onResume(Context applicationContext)
          Resume method
protected  void onSuccessfuleFileTransfer(TransferEvent observedEvent)
          Handler for observed file transfer events.
private  void releaseWakeLock()
          Does release the wake lock
private  void setBatteryLowObserver(BatteryLowStateObserver batteryLowObserver)
           
protected  void setCreated(boolean isCreated)
          Setter for the created flag
private  void setDbManager(DatabaseManager dbManager)
          Setter for the dbManager
private  void setDeviceConfigurationEventObserver(EventObserver<SensorDeviceConfigurationChangeEvent> deviceConfigEventObserver)
          Setter for the sensor device configuration event observer
private  void setLogLevelConfigEventObserver(EventObserver<LogLevelConfigurationChangeEvent> logLevelConfigEventObserver)
          Setter for the the log level configuration event observer
 void setSampleBroadcastService(SampleBroadcastService sampleBroadcastService)
          Setter for the sample broadcast service
 void setSDCService(SDCService service)
          Setter for the SDC service
private  void setSensorDeviceManager(SensorDeviceManager deviceManager)
          Setter for the sensor device manager
 void setServiceConfigEventObserver(EventObserver<ServiceConfigurationChangeEvent> serviceConfigEventObserver)
          Setter for the serviceConfigEventObserver
private  void setStorageManager(PersistentStorageManager storageManager)
          Setter for the storageManager
private  void setTimeProviderConfigEventObserver(EventObserver<TimeProviderConfigurationChangeEvent> timeProviderConfigEventObserver)
          Setter for the the time provider configuration event observer
 void setTimeProviderEventObserver(EventObserver<TimeProviderEvent> timeProviderEventObserver)
          Setter for the timeProviderEventObserver
 void setTransferManager(TransferManager transferManager)
          Setter for the transferManager
private  void setWakeLock(PowerManager.WakeLock wakeLock)
          Setter for the wake lock
 void stopServiceByReason(String msg)
          Does stop the service, logs the message as warning and sends a notification.
 void updateBroadcastFrequency(SampleBroadcastService sampleBroadcastService, long frequency)
          Method to update the broadcast frequency
private  void updateDatabaseMaximumSize(ServiceConfiguration updateConfig)
          Method to update database size by current service configuration
private  void updateLogTransferConfig(TransmissionProtocolConfiguration updateConfig)
          Method to update the log transfer configuration
private  void updateSampleBroadcastService(ServiceConfiguration updateConfig, boolean force)
          Method to update sample broadcasting by current service configuration
private  void updateSamplingConfiguration(ServiceConfiguration updateConfig, boolean force)
          Method to update additional sampling settings
private  void updateStorageManager(ServiceConfiguration updateConfig, boolean force)
          Method to update persistent storage management by current service configuration
private  void updateStrategyConfiguration(ServiceConfiguration updateConfig)
          Method to update the database full strategy configuration values
private  void updateTimeSyncErrorStrategy(TimeProviderConfiguration config)
          Method to update the error strategy for time provider sync errors
private  void updateTransferManager(ServiceConfiguration updateConfig, boolean force)
          Method to update sample transfer management by current service configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOW_BATTERY_MSG

private static final String LOW_BATTERY_MSG
The low on battery shutdown message.

See Also:
Constant Field Values

NOTIFICATION

public static final int NOTIFICATION
The notification id.


broadcastsEnabledCounter

private final AtomicInteger broadcastsEnabledCounter
Counter for requests to enable sample broadcasts.


service

private SDCService service
The SDC service.


serviceConfig

private final ServiceConfiguration serviceConfig
The service configuration.


deviceManager

private SensorDeviceManager deviceManager
The sensor device manager.


preferenceManager

private final ApplicationPreferenceManager preferenceManager
The preference manager.


timeProviderEventObserver

private EventObserver<TimeProviderEvent> timeProviderEventObserver
The time provider event observer.


deviceConfigEventObserver

private EventObserver<SensorDeviceConfigurationChangeEvent> deviceConfigEventObserver
The sensor device configuration change event observer.


logLevelConfigEventObserver

private EventObserver<LogLevelConfigurationChangeEvent> logLevelConfigEventObserver
The log level change event observer.


timeProviderConfigEventObserver

private EventObserver<TimeProviderConfigurationChangeEvent> timeProviderConfigEventObserver
The time provider change event observer.


serviceConfigEventObserver

private EventObserver<ServiceConfigurationChangeEvent> serviceConfigEventObserver
The service configuration change event observer.


fileTransferObserver

private final EventObserver<TransferEvent> fileTransferObserver
The file transfer event observer.


wakeLock

private PowerManager.WakeLock wakeLock
The wake lock to keep CPU running while service is active.


sampleBroadcastService

private SampleBroadcastService sampleBroadcastService
The sample broadcast service.


dbManager

private DatabaseManager dbManager
The database manager.


storageManager

private PersistentStorageManager storageManager
The persistent storage manager.


transferManager

private TransferManager transferManager
The sample transfer manager.


isCreated

private boolean isCreated
Flag for creation state.


transferStateNeedsReset

private final AtomicBoolean transferStateNeedsReset
Flag to mirror the expected transfer enabled state, for the duration of a manual triggered sample transfer.


batteryLowObserver

private BatteryLowStateObserver batteryLowObserver
The battery low state observer.


timeErrorStrategy

private TimeProviderErrorStrategy timeErrorStrategy
The time provider error strategy.

Constructor Detail

ServiceManagerImpl

public ServiceManagerImpl(Class<?> controlActivityClass)
Constructor

Parameters:
controlActivityClass - the control activity class or null
Method Detail

setSDCService

public final void setSDCService(SDCService service)
Description copied from interface: ServiceManager
Setter for the SDC service

Specified by:
setSDCService in interface ServiceManager
Parameters:
service - the SDC service to set

getSDCService

public final SDCService getSDCService()
Description copied from interface: ServiceManager
Getter for the SDC service

Specified by:
getSDCService in interface ServiceManager
Returns:
the SDC service

getServiceConfig

public final ServiceConfiguration getServiceConfig()
Getter for the serviceConfig

Returns:
the serviceConfig

getPreferenceManager

public final ApplicationPreferenceManager getPreferenceManager()
Description copied from interface: ServiceManager
Getter for the application preference manager

Specified by:
getPreferenceManager in interface ServiceManager
Returns:
the application preference manager

setSensorDeviceManager

private final void setSensorDeviceManager(SensorDeviceManager deviceManager)
Setter for the sensor device manager

Parameters:
deviceManager - the sensor device manager to set

getSensorDeviceManager

public final SensorDeviceManager getSensorDeviceManager()
Description copied from interface: ServiceManager
Getter for the sensor device manager

Specified by:
getSensorDeviceManager in interface ServiceManager
Returns:
the sensor device manager

getDeviceConfigurationEventObserver

private final EventObserver<SensorDeviceConfigurationChangeEvent> getDeviceConfigurationEventObserver()
Getter for the sensor device configuration event observer

Returns:
the sensor device configuration event observer

setDeviceConfigurationEventObserver

private final void setDeviceConfigurationEventObserver(EventObserver<SensorDeviceConfigurationChangeEvent> deviceConfigEventObserver)
Setter for the sensor device configuration event observer

Parameters:
deviceConfigEventObserver - the sensor device configuration event observer to set

getLogLevelConfigEventObserver

private final EventObserver<LogLevelConfigurationChangeEvent> getLogLevelConfigEventObserver()
Getter for the log level configuration event observer

Returns:
the log level configuration event observer

setLogLevelConfigEventObserver

private final void setLogLevelConfigEventObserver(EventObserver<LogLevelConfigurationChangeEvent> logLevelConfigEventObserver)
Setter for the the log level configuration event observer

Parameters:
logLevelConfigEventObserver - the log level configuration event observer to set

getTimeProviderConfigEventObserver

private final EventObserver<TimeProviderConfigurationChangeEvent> getTimeProviderConfigEventObserver()
Getter for the time provider configuration event observer

Returns:
the time provider configuration event observer

setTimeProviderConfigEventObserver

private final void setTimeProviderConfigEventObserver(EventObserver<TimeProviderConfigurationChangeEvent> timeProviderConfigEventObserver)
Setter for the the time provider configuration event observer

Parameters:
timeProviderConfigEventObserver - the time provider configuration event observer to set

getServiceConfigEventObserver

public final EventObserver<ServiceConfigurationChangeEvent> getServiceConfigEventObserver()
Getter for the serviceConfigEventObserver

Returns:
the serviceConfigEventObserver

setServiceConfigEventObserver

public final void setServiceConfigEventObserver(EventObserver<ServiceConfigurationChangeEvent> serviceConfigEventObserver)
Setter for the serviceConfigEventObserver

Parameters:
serviceConfigEventObserver - the serviceConfigEventObserver to set

getTimeProviderEventObserver

public final EventObserver<TimeProviderEvent> getTimeProviderEventObserver()
Getter for the timeProviderEventObserver

Returns:
the timeProviderEventObserver

setTimeProviderEventObserver

public final void setTimeProviderEventObserver(EventObserver<TimeProviderEvent> timeProviderEventObserver)
Setter for the timeProviderEventObserver

Parameters:
timeProviderEventObserver - the timeProviderEventObserver to set

getFileTransferObserver

private EventObserver<TransferEvent> getFileTransferObserver()
Getter for the fileTransferObserver

Returns:
the fileTransferObserver

setWakeLock

private final void setWakeLock(PowerManager.WakeLock wakeLock)
Setter for the wake lock

Parameters:
wakeLock - the wake lock to set

getWakeLock

private final PowerManager.WakeLock getWakeLock()
Getter for the wake lock

Returns:
the wake lock

getSampleBroadcastService

private final SampleBroadcastService getSampleBroadcastService()
Getter for the sample broadcast service

Returns:
the sample broadcast service

setSampleBroadcastService

public final void setSampleBroadcastService(SampleBroadcastService sampleBroadcastService)
Setter for the sample broadcast service

Parameters:
sampleBroadcastService - the sample broadcast service to set

setDbManager

private final void setDbManager(DatabaseManager dbManager)
Setter for the dbManager

Parameters:
dbManager - the dbManager to set

getDbManager

private final DatabaseManager getDbManager()
Getter for the dbManager

Returns:
the dbManager

getStorageManager

private final PersistentStorageManager getStorageManager()
Getter for the storageManager

Returns:
the storageManager

setStorageManager

private final void setStorageManager(PersistentStorageManager storageManager)
Setter for the storageManager

Parameters:
storageManager - the storageManager to set

getTransferManager

public final TransferManager getTransferManager()
Getter for the transferManager

Returns:
the transferManager

setTransferManager

public final void setTransferManager(TransferManager transferManager)
Setter for the transferManager

Parameters:
transferManager - the transferManager to set

setBatteryLowObserver

private void setBatteryLowObserver(BatteryLowStateObserver batteryLowObserver)

getBatteryLowObserver

private BatteryLowStateObserver getBatteryLowObserver()

setCreated

protected final void setCreated(boolean isCreated)
Setter for the created flag

Parameters:
isCreated - the created flag to set

isCreated

protected final boolean isCreated()
Getter for the created flag

Returns:
the created flag

releaseWakeLock

private final void releaseWakeLock()
Does release the wake lock


acquireWakeLock

private final void acquireWakeLock()
Does acquire the wake lock


onCreate

public final void onCreate(Context applicationContext)
Description copied from interface: LifeCycleObject
Creation method

Specified by:
onCreate in interface LifeCycleObject
Overrides:
onCreate in class LifeCycleObjectImpl
Parameters:
applicationContext - the application context

createTransferManager

public final void createTransferManager(Context applicationContext)
Method to create and configure the transfer manager

Parameters:
applicationContext - the application context

getUUID

private UUID getUUID(Context applicationContext)
Getter for the device identifier unique per service installation

Parameters:
applicationContext - the application context
Returns:
the unique service device identifier ( unique per installation )

createDatabaseManager

public final void createDatabaseManager(Context applicationContext,
                                        String dbName)
Method to create the database manager

Parameters:
applicationContext - the application context
dbName - the data base name

createStorageManager

private final void createStorageManager(Context applicationContext)
Method to create and configure the storage manager

Parameters:
applicationContext - the application context

onResume

public final void onResume(Context applicationContext)
Description copied from interface: LifeCycleObject
Resume method

Specified by:
onResume in interface LifeCycleObject
Overrides:
onResume in class LifeCycleObjectImpl
Parameters:
applicationContext - the application context

onPause

public final void onPause(Context applicationContext)
Description copied from interface: LifeCycleObject
Pause method

Specified by:
onPause in interface LifeCycleObject
Overrides:
onPause in class LifeCycleObjectImpl
Parameters:
applicationContext - the application context

attachTimeProviderEventObserver

private final void attachTimeProviderEventObserver()
Does attach the event observer for time provider events


attachEventObserversForConfigurationChanges

private final void attachEventObserversForConfigurationChanges()
Does attach event observers for configuration changes


onDestroy

public final void onDestroy(Context applicationContext)
Description copied from interface: LifeCycleObject
Destroy method

Specified by:
onDestroy in interface LifeCycleObject
Overrides:
onDestroy in class LifeCycleObjectImpl
Parameters:
applicationContext - the application context

handleTimeProviderEvent

private final void handleTimeProviderEvent(TimeProviderEvent event)
Handler for time provider events

Parameters:
event - the event

handleDeviceConfigurationChange

private final void handleDeviceConfigurationChange(SensorDeviceConfigurationChangeEvent deviceChangeEvent)
Handler for sensor device configuration changes

Parameters:
deviceChangeEvent - the change event

handleLogLevelConfigurationChange

private final void handleLogLevelConfigurationChange(LogLevelConfigurationChangeEvent loglevelChangeEvent)
Handler for log level configuration changes

Parameters:
loglevelChangeEvent - the change event

handleTimeProviderConfigurationChange

protected final void handleTimeProviderConfigurationChange(TimeProviderConfigurationChangeEvent observedEvent)
Handler for time provider configuration changes

Parameters:
observedEvent -

updateTimeSyncErrorStrategy

private void updateTimeSyncErrorStrategy(TimeProviderConfiguration config)
Method to update the error strategy for time provider sync errors

Parameters:
config - the update configuration

handleServiceConfigurationChange

protected final void handleServiceConfigurationChange(ServiceConfigurationChangeEvent observedEvent)
Handler for service configuration changes

Parameters:
observedEvent -

updateLogTransferConfig

private final void updateLogTransferConfig(TransmissionProtocolConfiguration updateConfig)
Method to update the log transfer configuration

Parameters:
updateConfig - the configuration to update from

updateSamplingConfiguration

private final void updateSamplingConfiguration(ServiceConfiguration updateConfig,
                                               boolean force)
Method to update additional sampling settings

Parameters:
updateConfig - the configuration to update from
force - flag if a state update should be forced

updateSampleBroadcastService

private final void updateSampleBroadcastService(ServiceConfiguration updateConfig,
                                                boolean force)
Method to update sample broadcasting by current service configuration

Parameters:
updateConfig - the configuration to update from
force - flag if a state update should be forced

updateBroadcastFrequency

public void updateBroadcastFrequency(SampleBroadcastService sampleBroadcastService,
                                     long frequency)
Method to update the broadcast frequency

Parameters:
sampleBroadcastService - the broadcast service
frequency - the new frequency

updateStorageManager

private final void updateStorageManager(ServiceConfiguration updateConfig,
                                        boolean force)
Method to update persistent storage management by current service configuration

Parameters:
updateConfig - the configuration to update from
force - flag if a state update should be forced

updateStrategyConfiguration

private final void updateStrategyConfiguration(ServiceConfiguration updateConfig)
Method to update the database full strategy configuration values

Parameters:
updateConfig - the configuration to update from

updateDatabaseMaximumSize

private final void updateDatabaseMaximumSize(ServiceConfiguration updateConfig)
Method to update database size by current service configuration

Parameters:
updateConfig - the configuration to update from

updateTransferManager

private final void updateTransferManager(ServiceConfiguration updateConfig,
                                         boolean force)
Method to update sample transfer management by current service configuration

Parameters:
updateConfig - the configuration to update from
force - flag if a state update should be forced

onEvent

public final void onEvent(ObservableEventSource<? extends BatteryLowEvent> eventSource,
                          BatteryLowEvent observedEvent)
Description copied from interface: EventObserver
This method is called whenever the observed object does create an observed event

Specified by:
onEvent in interface EventObserver<BatteryLowEvent>
Parameters:
eventSource - the event generator
observedEvent - the event created by the observed object

stopServiceByReason

public final void stopServiceByReason(String msg)
Description copied from interface: ServiceManager
Does stop the service, logs the message as warning and sends a notification.

Specified by:
stopServiceByReason in interface ServiceManager
Parameters:
msg - the message to log and for use in notification

getContext

public Context getContext()
Description copied from interface: ServiceManager
Getter for the service/application context

Specified by:
getContext in interface ServiceManager
Returns:
the context

doEnableSampleBroadCasting

public final void doEnableSampleBroadCasting(boolean doEnable)
Description copied from interface: ServiceManager
Does enable or disable the sample broadcast feature

Specified by:
doEnableSampleBroadCasting in interface ServiceManager
Parameters:
doEnable - flag if sample broadcasting shall be enabled or disabled

doChangeBroadcastServiceState

public final void doChangeBroadcastServiceState(boolean doEnable)
Method to change the broadcast state of the service

Parameters:
doEnable -

doEnableSampling

public final void doEnableSampling(boolean doEnable)
Description copied from interface: ServiceManager
Does activate or deactivate the sampling process for the running service. This will permanent change the corresponding service setting as w

Specified by:
doEnableSampling in interface ServiceManager
Parameters:
doEnable - flag if sampling shall be active or not

doEnableSampleStorage

public void doEnableSampleStorage(boolean doEnable)
Description copied from interface: ServiceManager
Does change the persistent storage enabled state. This will permanent change the corresponding service setting as well.

Specified by:
doEnableSampleStorage in interface ServiceManager
Parameters:
doEnable - flag if the transfer feature shall be enabled or disabled

doEnableSampleTransfer

public final void doEnableSampleTransfer(boolean doEnable)
Description copied from interface: ServiceManager
Does change the sample transfer activation state. This will permanent change the corresponding service setting as well.

Specified by:
doEnableSampleTransfer in interface ServiceManager
Parameters:
doEnable - flag if the transfer feature shall be enabled or disabled

doTriggerSampleTransfer

public final void doTriggerSampleTransfer()
Description copied from interface: ServiceManager
Does manually trigger an instant sample transfer ( with a short delay ). If the sample transfer feature is not enabled, it is activated automatically for a single archive transfer. A manually triggered sample transfer does consider all configured transfer settings but the frequency minimum: It will only take place if at least the configured minimum of samples is available in the database, and the total of transferred samples will not exceed the configured maximum.

Specified by:
doTriggerSampleTransfer in interface ServiceManager

onSuccessfuleFileTransfer

protected void onSuccessfuleFileTransfer(TransferEvent observedEvent)
Handler for observed file transfer events.

Parameters:
observedEvent - the observed transfer event