Package org.duracloud.mill.dup.repo
Interface DuplicationPolicyRepo
- All Known Implementing Classes:
LocalDuplicationPolicyRepo,S3DuplicationPolicyRepo,SwiftDuplicationPolicyRepo
public interface DuplicationPolicyRepo
Provides a connection to a duplication policy repository, which is
essentially a storage location for the policy files used to define
how duplication is to be handled for DuraCloud accounts.
- Author:
- Bill Branan Date: 10/31/13
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionProvides a listing of DuraCloud accounts which require duplication.getDuplicationPolicy(String account) Provides the duplication policy for a given account
-
Field Details
-
DUP_ACCOUNTS_NAME
The expected name of the file which contains the listing of accounts that need duplication actions to occur.- See Also:
-
DUP_POLICY_SUFFIX
The expected filename suffix of all files which define a duplication policy for an account.- See Also:
-
-
Method Details
-
getDuplicationAccounts
InputStream getDuplicationAccounts()Provides a listing of DuraCloud accounts which require duplication. Accounts are identified using their subdomain value.- Returns:
-
getDuplicationPolicy
Provides the duplication policy for a given account- Parameters:
account-- Returns:
-