Class APIReaders.RadarMNSetGeoserverRunnable
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.APIReaders.RadarMNSetGeoserverRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- APIReaders
public static class APIReaders.RadarMNSetGeoserverRunnable extends java.lang.Object implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description static int
DATASET_SIZE
static java.lang.String
RADAR_CACHE_FILENAME_PREFIX
static java.lang.String
RADAR_CACHE_FILENAME_SUFFIX
boolean
ssl_exception
static int
TIMESTEP_5MINUTES
-
Constructor Summary
Constructors Constructor Description RadarMNSetGeoserverRunnable(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
deleteCacheFile(Context context, int count)
static void
deleteCacheFiles(Context context)
void
fetchRadarSet(int start, int stop)
static boolean
fullRadarDataSet(Context context)
static java.io.File
getRadarMNFile(Context context, int count)
java.net.URL
getUrlStringForTime(long time, boolean ssl)
void
incrementErrors()
void
incrementProgress()
void
onFinished(long startTime, boolean success)
void
onProgress(long startTime, int progress)
void
onStart()
static boolean
radarCacheFileExists(Context context, int count)
static boolean
radarCacheFileValid(Context context, int count)
long
roundUTCUpToNextFiveMinutes(long time)
void
run()
void
setForceUpdate(boolean forceUpdate)
-
-
-
Field Detail
-
RADAR_CACHE_FILENAME_PREFIX
public static final java.lang.String RADAR_CACHE_FILENAME_PREFIX
- See Also:
- Constant Field Values
-
RADAR_CACHE_FILENAME_SUFFIX
public static final java.lang.String RADAR_CACHE_FILENAME_SUFFIX
- See Also:
- Constant Field Values
-
TIMESTEP_5MINUTES
public static final int TIMESTEP_5MINUTES
- See Also:
- Constant Field Values
-
DATASET_SIZE
public static final int DATASET_SIZE
- See Also:
- Constant Field Values
-
ssl_exception
public boolean ssl_exception
-
-
Method Detail
-
setForceUpdate
public void setForceUpdate(boolean forceUpdate)
-
roundUTCUpToNextFiveMinutes
public long roundUTCUpToNextFiveMinutes(long time)
-
getUrlStringForTime
public java.net.URL getUrlStringForTime(long time, boolean ssl)
-
getRadarMNFile
public static java.io.File getRadarMNFile(Context context, int count)
-
radarCacheFileExists
public static boolean radarCacheFileExists(Context context, int count)
-
radarCacheFileValid
public static boolean radarCacheFileValid(Context context, int count)
-
fullRadarDataSet
public static boolean fullRadarDataSet(Context context)
-
deleteCacheFile
public static boolean deleteCacheFile(Context context, int count)
-
deleteCacheFiles
public static void deleteCacheFiles(Context context)
-
fetchRadarSet
public void fetchRadarSet(int start, int stop)
-
incrementProgress
public void incrementProgress()
-
incrementErrors
public void incrementErrors()
-
onStart
public void onStart()
-
onFinished
public void onFinished(long startTime, boolean success)
-
onProgress
public void onProgress(long startTime, int progress)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-