Package org.duracloud.mill.dup.repo
Interface DuplicationPolicyRepo
-
- All Known Implementing Classes:
LocalDuplicationPolicyRepo,S3DuplicationPolicyRepo,SwiftDuplicationPolicyRepo
public interface DuplicationPolicyRepoProvides 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 Modifier and Type Field Description static StringDUP_ACCOUNTS_NAMEThe expected name of the file which contains the listing of accounts that need duplication actions to occur.static StringDUP_POLICY_SUFFIXThe expected filename suffix of all files which define a duplication policy for an account.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetDuplicationAccounts()Provides a listing of DuraCloud accounts which require duplication.InputStreamgetDuplicationPolicy(String account)Provides the duplication policy for a given account
-
-
-
Field Detail
-
DUP_ACCOUNTS_NAME
static final String DUP_ACCOUNTS_NAME
The expected name of the file which contains the listing of accounts that need duplication actions to occur.- See Also:
- Constant Field Values
-
DUP_POLICY_SUFFIX
static final String DUP_POLICY_SUFFIX
The expected filename suffix of all files which define a duplication policy for an account.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDuplicationAccounts
InputStream getDuplicationAccounts()
Provides a listing of DuraCloud accounts which require duplication. Accounts are identified using their subdomain value.- Returns:
-
getDuplicationPolicy
InputStream getDuplicationPolicy(String account)
Provides the duplication policy for a given account- Parameters:
account-- Returns:
-
-