public abstract class AbstractUpdatePolicy extends AbstractPolicy implements PreDownloadPolicy
Modifier and Type | Field and Description |
---|---|
static PolicyOption |
ALWAYS
The ALWAYS policy setting means that the artifact is always updated from the remote repo.
|
static UpdateOption |
DAILY
The DAILY policy means that the artifact retrieval occurs only if one of
the following conditions are met...
|
static UpdateOption |
HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of
the following conditions are met...
|
static PolicyOption |
NEVER
The NEVER policy setting means that the artifact is never updated from the remote repo.
|
static UpdateOption |
ONCE
The ONCE policy means that the artifact retrieval occurs only if the
local artifact is not present.
|
RESOURCE_BUNDLE
Constructor and Description |
---|
AbstractUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
void |
applyPolicy(PolicyOption policySetting,
Properties request,
StorageAsset localFile)
Apply the download policy.
|
List<PolicyOption> |
getOptions()
Get the list of options for this policy.
|
protected abstract String |
getUpdateMode() |
protected abstract boolean |
isSnapshotPolicy() |
getDescription, getName, getName, getOptionDescription, getOptionName, getOptionPrefix, getPolicyPrefix, setOptionPrefix, setPolicyPrefix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultOption, getDescription, getId, getName, getName, getOptionDescription, getOptionName
public static final PolicyOption ALWAYS
public static final PolicyOption NEVER
public static final UpdateOption DAILY
The DAILY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final UpdateOption HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final UpdateOption ONCE
public AbstractUpdatePolicy()
protected abstract boolean isSnapshotPolicy()
protected abstract String getUpdateMode()
public List<PolicyOption> getOptions()
Policy
getOptions
in interface Policy
public void applyPolicy(PolicyOption policySetting, Properties request, StorageAsset localFile) throws PolicyViolationException, PolicyConfigurationException
DownloadPolicy
applyPolicy
in interface DownloadPolicy
policySetting
- the policy setting.request
- the list of request properties that the policy might use.PolicyViolationException
- if the policy has been violated.PolicyConfigurationException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.