|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.preferences.ServiceConfigurationImpl
public class ServiceConfigurationImpl
Implementation of the service configuration.
| Field Summary | |
|---|---|
private long |
broadcastFrequency
The broadcast interval in milliseconds. |
private boolean |
dbFullDeletionIsPriorityBased
Flag if the database full strategy does work priority based. |
private int |
dbFullDeletionRecordCount
The record count which is deleted every time the {link database full strategy is executed. |
private DBFullStrategyDescription |
dbFullStrategy
The configured @link database full
strategy . |
private long |
dbFullWaitTime
The milliseconds the persistent storage manager is paused every time the {link database full strategy is executed. |
private boolean |
isAddingSampleLocation
The flag for attachment of a location fix to each sample |
private boolean |
isBroadcastingSamples
The flag for the service sample broadcast behavior |
private boolean |
isSamplingEnabled
The sampling enabled state. |
private boolean |
isStoringSamples
The flag for persistent storage of samples for transmission purpose |
private boolean |
isTransmittingSamples
The transmission behavior flag |
private TransmissionProtocolConfiguration |
logTransferConfiguration
The log transfer configuration |
private long |
maxDBSize
The maximum database size in bytes |
private WeeklySchedule |
schedule
The weekly schedule. |
private TransmissionConfiguration |
transmissionConfiguration
The transmission configuration |
| Constructor Summary | |
|---|---|
ServiceConfigurationImpl()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
long |
getBroadcastFrequency()
Getter for the broadcast frequency |
int |
getDBFullDeletionRecordCount()
Getter for the record count to be deleted in case of a full database ( used by the sample deletion strategy ) |
DBFullStrategyDescription |
getDBFullStrategy()
Getter for the configured Database full strategy chain |
long |
getDBFullWaitTime()
Getter for the wait time used by the wait strategy in case of a full database |
TransmissionProtocolConfiguration |
getLogTransferConfiguration()
Getter for the log transfer configuration |
long |
getMaximumDatabaseSize()
Getter for the maximum database size in bytes |
TransmissionConfiguration |
getTransmissionConfiguration()
Getter for the transmission configuration |
WeeklySchedule |
getWeeklySchedule()
Getter for the weekly runtime schedule. |
boolean |
isAddingSampleLocation()
Getter for the flag for adding a location fix to each sample |
boolean |
isBroadcastingSamples()
Getter for the flag for sample broadcasts behavior |
boolean |
isDBFullDeletionPriorityBased()
Getter for the flag database deletion strategy priority flag |
boolean |
isSamplingEnabled()
Getter for the sampling enabled state |
boolean |
isStoringSamples()
Getter for the flag for persistent storage behavior |
boolean |
isTransmittingSamples()
Getter for the transmission behavior flag |
void |
setBroadcastFrequency(Long frequency)
Setter for the broadcast frequency |
void |
setBroadcastingSamples(Boolean isBroadcastingSamples)
Setter for the flag for sample broadcasts behavior |
void |
setDBFullDeletionPriorityBased(Boolean dbFullDeletionIsPriorityBased)
Setter for the flag database deletion strategy priority flag |
void |
setDBFullDeletionRecordCount(Integer dbFullDeletionRecordCount)
Setter for the record count to be deleted in case of a full database ( used by the sample deletion strategy ) |
void |
setDBFullStrategy(DBFullStrategyDescription dbFullStrategy)
Setter for the configured database full strategy chain |
void |
setDBFullWaitTime(Long dbFullWaitTime)
Setter for the wait time used by the wait strategy in case of a full database |
void |
setIsAddingSampleLocation(Boolean isAddingSampleLocation)
Setter for the flag for adding a location fix to each sample |
void |
setLogTransferConfiguration(TransmissionProtocolConfiguration config)
Setter for the log transfer configuration |
void |
setMaximumDatabaseSize(Long maxDBSize)
Setter for the maximum database size in bytes |
void |
setSamplingEnabled(Boolean isSamplingEnabled)
Setter for the sampling enabled state |
void |
setStoringSamples(Boolean isStoringSamples)
Setter for flag for persistent storage behavior |
void |
setTransmissionConfiguration(TransmissionConfiguration config)
Setter for the transmission configuration |
void |
setTransmittingSamples(Boolean isTransmittingSamples)
Setter for the transmission behavior flag |
void |
setWeeklySchedule(WeeklySchedule schedule)
Setter for the weekly runtime schedule. |
void |
update(SDCConfiguration config)
Does update this configuration by a serializable configuration |
void |
update(ServiceConfiguration configuration)
Does update this configuration by another configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean isBroadcastingSamples
private long broadcastFrequency
private boolean isSamplingEnabled
private boolean isAddingSampleLocation
private boolean isStoringSamples
private boolean isTransmittingSamples
private long maxDBSize
private boolean dbFullDeletionIsPriorityBased
database
full strategy is executed, it will first delete the oldest samples with
lowest priority.
private int dbFullDeletionRecordCount
database full strategy is executed.
private long dbFullWaitTime
database full strategy is executed.
private DBFullStrategyDescription dbFullStrategy
database full
strategy .
private final TransmissionConfiguration transmissionConfiguration
private final TransmissionProtocolConfiguration logTransferConfiguration
private WeeklySchedule schedule
| Constructor Detail |
|---|
public ServiceConfigurationImpl()
| Method Detail |
|---|
public void update(ServiceConfiguration configuration)
UpdatableConfiguration
update in interface UpdatableConfiguration<ServiceConfiguration>configuration - the configuration to update frompublic void update(SDCConfiguration config)
ServiceConfiguration
update in interface ServiceConfigurationconfig - the serializable configuration to update frompublic boolean equals(Object o)
equals in class Objectpublic boolean isBroadcastingSamples()
ServiceConfiguration
isBroadcastingSamples in interface ServiceConfigurationpublic void setBroadcastingSamples(Boolean isBroadcastingSamples)
ServiceConfiguration
setBroadcastingSamples in interface ServiceConfigurationisBroadcastingSamples - the flag for sample broadcasts to setpublic boolean isSamplingEnabled()
ServiceConfiguration
isSamplingEnabled in interface ServiceConfigurationpublic void setSamplingEnabled(Boolean isSamplingEnabled)
ServiceConfiguration
setSamplingEnabled in interface ServiceConfigurationisSamplingEnabled - the the sampling enabled state to setpublic final boolean isStoringSamples()
ServiceConfiguration
isStoringSamples in interface ServiceConfigurationpublic final void setStoringSamples(Boolean isStoringSamples)
ServiceConfiguration
setStoringSamples in interface ServiceConfigurationisStoringSamples - the flag for persistent storage behavior to setpublic boolean isTransmittingSamples()
ServiceConfiguration
isTransmittingSamples in interface ServiceConfigurationpublic void setTransmittingSamples(Boolean isTransmittingSamples)
ServiceConfiguration
setTransmittingSamples in interface ServiceConfigurationisTransmittingSamples - the transmission behavior flag to setpublic void setMaximumDatabaseSize(Long maxDBSize)
ServiceConfiguration
setMaximumDatabaseSize in interface ServiceConfigurationmaxDBSize - the maximum database size in bytespublic long getMaximumDatabaseSize()
ServiceConfiguration
getMaximumDatabaseSize in interface ServiceConfigurationpublic void setDBFullWaitTime(Long dbFullWaitTime)
ServiceConfiguration
setDBFullWaitTime in interface ServiceConfigurationdbFullWaitTime - the wait time in milliseconds to setpublic long getDBFullWaitTime()
ServiceConfiguration
getDBFullWaitTime in interface ServiceConfigurationpublic void setDBFullDeletionRecordCount(Integer dbFullDeletionRecordCount)
ServiceConfiguration
setDBFullDeletionRecordCount in interface ServiceConfigurationdbFullDeletionRecordCount - the deletion record count to setpublic int getDBFullDeletionRecordCount()
ServiceConfiguration
getDBFullDeletionRecordCount in interface ServiceConfigurationpublic void setDBFullDeletionPriorityBased(Boolean dbFullDeletionIsPriorityBased)
ServiceConfiguration
setDBFullDeletionPriorityBased in interface ServiceConfigurationdbFullDeletionIsPriorityBased - true if the database deletion strategy shall delete lower
priorities first, false otherwisepublic boolean isDBFullDeletionPriorityBased()
ServiceConfiguration
isDBFullDeletionPriorityBased in interface ServiceConfigurationpublic void setDBFullStrategy(DBFullStrategyDescription dbFullStrategy)
ServiceConfiguration
setDBFullStrategy in interface ServiceConfigurationdbFullStrategy - the configured database full strategy chainpublic DBFullStrategyDescription getDBFullStrategy()
ServiceConfiguration
getDBFullStrategy in interface ServiceConfigurationpublic void setTransmissionConfiguration(TransmissionConfiguration config)
ServiceConfiguration
setTransmissionConfiguration in interface ServiceConfigurationconfig - the transmission configuration to setpublic TransmissionConfiguration getTransmissionConfiguration()
ServiceConfiguration
getTransmissionConfiguration in interface ServiceConfigurationpublic void setLogTransferConfiguration(TransmissionProtocolConfiguration config)
ServiceConfiguration
setLogTransferConfiguration in interface ServiceConfigurationconfig - the log transfer configuration to setpublic TransmissionProtocolConfiguration getLogTransferConfiguration()
ServiceConfiguration
getLogTransferConfiguration in interface ServiceConfigurationpublic boolean isAddingSampleLocation()
ServiceConfiguration
isAddingSampleLocation in interface ServiceConfigurationpublic void setIsAddingSampleLocation(Boolean isAddingSampleLocation)
ServiceConfiguration
setIsAddingSampleLocation in interface ServiceConfigurationisAddingSampleLocation - the flag for adding a location fix to each samplepublic long getBroadcastFrequency()
ServiceConfiguration
getBroadcastFrequency in interface ServiceConfigurationpublic void setBroadcastFrequency(Long frequency)
ServiceConfiguration
setBroadcastFrequency in interface ServiceConfigurationfrequency - the broadcast frequency to setpublic void setWeeklySchedule(WeeklySchedule schedule)
ServiceConfiguration
setWeeklySchedule in interface ServiceConfigurationschedule - the weekly schedule configuration to set.public WeeklySchedule getWeeklySchedule()
ServiceConfiguration
getWeeklySchedule in interface ServiceConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||