|
||||||||||
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 ServiceConfiguration
config
- the serializable configuration to update frompublic boolean equals(Object o)
equals
in class Object
public boolean isBroadcastingSamples()
ServiceConfiguration
isBroadcastingSamples
in interface ServiceConfiguration
public void setBroadcastingSamples(Boolean isBroadcastingSamples)
ServiceConfiguration
setBroadcastingSamples
in interface ServiceConfiguration
isBroadcastingSamples
- the flag for sample broadcasts to setpublic boolean isSamplingEnabled()
ServiceConfiguration
isSamplingEnabled
in interface ServiceConfiguration
public void setSamplingEnabled(Boolean isSamplingEnabled)
ServiceConfiguration
setSamplingEnabled
in interface ServiceConfiguration
isSamplingEnabled
- the the sampling enabled state to setpublic final boolean isStoringSamples()
ServiceConfiguration
isStoringSamples
in interface ServiceConfiguration
public final void setStoringSamples(Boolean isStoringSamples)
ServiceConfiguration
setStoringSamples
in interface ServiceConfiguration
isStoringSamples
- the flag for persistent storage behavior to setpublic boolean isTransmittingSamples()
ServiceConfiguration
isTransmittingSamples
in interface ServiceConfiguration
public void setTransmittingSamples(Boolean isTransmittingSamples)
ServiceConfiguration
setTransmittingSamples
in interface ServiceConfiguration
isTransmittingSamples
- the transmission behavior flag to setpublic void setMaximumDatabaseSize(Long maxDBSize)
ServiceConfiguration
setMaximumDatabaseSize
in interface ServiceConfiguration
maxDBSize
- the maximum database size in bytespublic long getMaximumDatabaseSize()
ServiceConfiguration
getMaximumDatabaseSize
in interface ServiceConfiguration
public void setDBFullWaitTime(Long dbFullWaitTime)
ServiceConfiguration
setDBFullWaitTime
in interface ServiceConfiguration
dbFullWaitTime
- the wait time in milliseconds to setpublic long getDBFullWaitTime()
ServiceConfiguration
getDBFullWaitTime
in interface ServiceConfiguration
public void setDBFullDeletionRecordCount(Integer dbFullDeletionRecordCount)
ServiceConfiguration
setDBFullDeletionRecordCount
in interface ServiceConfiguration
dbFullDeletionRecordCount
- the deletion record count to setpublic int getDBFullDeletionRecordCount()
ServiceConfiguration
getDBFullDeletionRecordCount
in interface ServiceConfiguration
public void setDBFullDeletionPriorityBased(Boolean dbFullDeletionIsPriorityBased)
ServiceConfiguration
setDBFullDeletionPriorityBased
in interface ServiceConfiguration
dbFullDeletionIsPriorityBased
- true if the database deletion strategy shall delete lower
priorities first, false otherwisepublic boolean isDBFullDeletionPriorityBased()
ServiceConfiguration
isDBFullDeletionPriorityBased
in interface ServiceConfiguration
public void setDBFullStrategy(DBFullStrategyDescription dbFullStrategy)
ServiceConfiguration
setDBFullStrategy
in interface ServiceConfiguration
dbFullStrategy
- the configured database full strategy chainpublic DBFullStrategyDescription getDBFullStrategy()
ServiceConfiguration
getDBFullStrategy
in interface ServiceConfiguration
public void setTransmissionConfiguration(TransmissionConfiguration config)
ServiceConfiguration
setTransmissionConfiguration
in interface ServiceConfiguration
config
- the transmission configuration to setpublic TransmissionConfiguration getTransmissionConfiguration()
ServiceConfiguration
getTransmissionConfiguration
in interface ServiceConfiguration
public void setLogTransferConfiguration(TransmissionProtocolConfiguration config)
ServiceConfiguration
setLogTransferConfiguration
in interface ServiceConfiguration
config
- the log transfer configuration to setpublic TransmissionProtocolConfiguration getLogTransferConfiguration()
ServiceConfiguration
getLogTransferConfiguration
in interface ServiceConfiguration
public boolean isAddingSampleLocation()
ServiceConfiguration
isAddingSampleLocation
in interface ServiceConfiguration
public void setIsAddingSampleLocation(Boolean isAddingSampleLocation)
ServiceConfiguration
setIsAddingSampleLocation
in interface ServiceConfiguration
isAddingSampleLocation
- the flag for adding a location fix to each samplepublic long getBroadcastFrequency()
ServiceConfiguration
getBroadcastFrequency
in interface ServiceConfiguration
public void setBroadcastFrequency(Long frequency)
ServiceConfiguration
setBroadcastFrequency
in interface ServiceConfiguration
frequency
- the broadcast frequency to setpublic void setWeeklySchedule(WeeklySchedule schedule)
ServiceConfiguration
setWeeklySchedule
in interface ServiceConfiguration
schedule
- 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 |