Package PamController.fileprocessing
Class StoreStatus
java.lang.Object
PamController.fileprocessing.StoreStatus
- Direct Known Subclasses:
BinaryStoreStatus
,DatabaseStoreStatus
Class to carry information about an OfflineDataStore. Used when restarting offline
processing to help work out if we should overwrite, start again, etc.
- Author:
- dg50
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract long
Get the amount of free space for this storage.long
getFreeSpace
(String currDir) int
void
setFirstDataTime
(Long firstDataTime) void
setLastDataTime
(Long lastDataTime) void
setStoreStatus
(int storeStatus)
-
Field Details
-
STATUS_MISSING
public static final int STATUS_MISSING- See Also:
-
STATUS_EMPTY
public static final int STATUS_EMPTY- See Also:
-
STATUS_HASDATA
public static final int STATUS_HASDATA- See Also:
-
-
Constructor Details
-
StoreStatus
-
-
Method Details
-
getFreeSpace
public abstract long getFreeSpace()Get the amount of free space for this storage.- Returns:
- free space in bytes.
-
getFreeSpace
-
getFirstDataTime
- Returns:
- the firstDataTime
-
setFirstDataTime
- Parameters:
firstDataTime
- the firstDataTime to set
-
getLastDataTime
- Returns:
- the lastDataTime
-
setLastDataTime
- Parameters:
lastDataTime
- the lastDataTime to set
-
getStoreStatus
public int getStoreStatus()- Returns:
- the storeStatus
-
setStoreStatus
public void setStoreStatus(int storeStatus) - Parameters:
storeStatus
- the storeStatus to set
-
getOfflineDataStore
- Returns:
- the offlineDataStore
-