\r\n

51Degrees Pipeline Java  4.4

51Degrees Pipeline for Java

fiftyone.pipeline.engines.data.AspectEngineDataFileDefault Class Reference

Detailed Description

Default implementation of the AspectEngineDataFile interface.

Inheritance diagram for fiftyone.pipeline.engines.data.AspectEngineDataFileDefault:

[legend]

Collaboration diagram for fiftyone.pipeline.engines.data.AspectEngineDataFileDefault:

[legend]

Public Member Functions

String  getIdentifier ()
Get an identifier for this data file. More...
void  setIdentifier (String identifier)
Set an identifier for this data file. More...
OnPremiseAspectEngine<? extends AspectData, ? extends AspectPropertyMetaData >  getEngine ()
Get the engine this data file is used by. More...
void  setEngine (OnPremiseAspectEngine<? extends AspectData, ? extends AspectPropertyMetaData > engine)
Set the engine this data file is used by. More...
String  getDataFilePath ()
The complete file path to the location of the data file. More...
String  getTempDataFilePath ()
Get the complete file path to the location of the temporary copy of the data file that is currently being used by the AspectEngine. More...
void  setTempDataFilePath (String path)
Set the complete file path to the location of the temporary copy of the data file that is currently being used by the AspectEngine. More...
String  getTempDataDirPath ()
Get the path to use when working with temporary files associated with this data file. More...
void  setTempDataDirPath (String path)
Set the path to use when working with temporary files associated with this data file. More...
boolean  getAutomaticUpdatesEnabled ()
True if automatic updates are enabled, false otherwise. More...
Date  getUpdateAvailableTime ()
Get the date and time by which an update to the current data file is expected to have been published. More...
void  setUpdateAvailableTime (Date updateAvailableTime)
Set the date and time by which an update to the current data file is expected to have been published. More...
Date  getDataPublishedDateTime ()
Set the date and time that the current data file was published. More...
void  setDataPublishedDateTime (Date dataPublishedTime)
Set the date and time that the current data file was published. More...
DataFileConfiguration  getConfiguration ()
Get the configuration that was provided for this data file. More...
void  setConfiguration (DataFileConfiguration configuration)
Set the configuration that was provided for this data file. More...
boolean  getIsRegistered ()
Returns true if this file has been registered with the data update service. More...
String  getFormattedUrl ()
Get the data update URL complete with any query string parameters that are needed to retrieve the data. More...
void  setDataUpdateService (DataUpdateService dataUpdateService)
Set the data update service that this data file is registered with. More...
long  getLastUpdateFileCreateTime ()
void  setLastUpdateFileCreateTime (long createTime)
Object  getUpdateSyncLock ()
ScheduledFuture<?>  getFuture ()
void  setFuture (ScheduledFuture<?> future)
ScheduledFuture<?>  getPollFuture () void  setPollFuture (ScheduledFuture<?> future) void  close () throws IOException

Member Function Documentation

◆ getAutomaticUpdatesEnabled()

boolean fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getAutomaticUpdatesEnabled ( )

True if automatic updates are enabled, false otherwise.

Returns
true if automatic updates are enabled, false otherwise

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getConfiguration()

DataFileConfiguration fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getConfiguration ( )

Get the configuration that was provided for this data file.

Returns
configuration for this file

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getDataFilePath()

String fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getDataFilePath ( )

The complete file path to the location of the data file.

This value will be null if the file has been supplied from a byte[] in memory.

Returns
file path or null

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getDataPublishedDateTime()

Date fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getDataPublishedDateTime ( )

Set the date and time that the current data file was published.

Returns
date the file was published

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getEngine()

OnPremiseAspectEngine<? extends AspectData, ? extends AspectPropertyMetaData> fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getEngine ( )

Get the engine this data file is used by.

Returns
engine the data file is used by

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getFormattedUrl()

String fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getFormattedUrl ( )

Get the data update URL complete with any query string parameters that are needed to retrieve the data.

By default, no query string parameters are added to the URL.

Returns
formatted URL for getting a new data file

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getIdentifier()

String fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getIdentifier ( )

Get an identifier for this data file.

Each data file used by an engine must have a different identifier.

Returns
data file identifier

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getIsRegistered()

boolean fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getIsRegistered ( )

Returns true if this file has been registered with the data update service.

False if not.

Returns
true if the file has been registered for updates

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getTempDataDirPath()

String fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getTempDataDirPath ( )

Get the path to use when working with temporary files associated with this data file.

Returns
path to create temporary files in

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getTempDataFilePath()

String fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getTempDataFilePath ( )

Get the complete file path to the location of the temporary copy of the data file that is currently being used by the AspectEngine.

Engines often make a temporary copy of the data file in order to allow the original to be updated. This value will be null if the file is loaded entirely into memory.

Returns
temp data file path or null

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ getUpdateAvailableTime()

Date fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.getUpdateAvailableTime ( )

Get the date and time by which an update to the current data file is expected to have been published.

Returns
the data of the next data file

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setConfiguration()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setConfiguration ( DataFileConfiguration   configuration )

Set the configuration that was provided for this data file.

Parameters
configuration - for this file

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setDataPublishedDateTime()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setDataPublishedDateTime ( Date   published )

Set the date and time that the current data file was published.

Parameters
published - date the file was published

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setDataUpdateService()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setDataUpdateService ( DataUpdateService   dataUpdateService )

Set the data update service that this data file is registered with.

Parameters
dataUpdateService - The data update service.

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setEngine()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setEngine ( OnPremiseAspectEngine<? extends AspectData, ? extends AspectPropertyMetaData >   engine )

Set the engine this data file is used by.

Parameters
engine - the data file is used by

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setIdentifier()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setIdentifier ( String   identifier )

Set an identifier for this data file.

Each data file used by an engine must have a different identifier.

Parameters
identifier - data file identifier

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setTempDataDirPath()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setTempDataDirPath ( String   path )

Set the path to use when working with temporary files associated with this data file.

Parameters
path - the to create temporary files in

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setTempDataFilePath()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setTempDataFilePath ( String   file )

Set the complete file path to the location of the temporary copy of the data file that is currently being used by the AspectEngine.

Engines often make a temporary copy of the data file in order to allow the original to be updated. This value will be null if the file is loaded entirely into memory.

Parameters
file - temp data file path

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

◆ setUpdateAvailableTime()

void fiftyone.pipeline.engines.data.AspectEngineDataFileDefault.setUpdateAvailableTime ( Date   availableTime )

Set the date and time by which an update to the current data file is expected to have been published.

Parameters
availableTime - the date of the next data file

Implements fiftyone.pipeline.engines.data.AspectEngineDataFile.

On This Page