|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.duracloud.services.duplication.impl.SpaceDuplicatorReportingImpl
public class SpaceDuplicatorReportingImpl
This class implements the SpaceDuplicator contract with the responsibility of requeuing failed duplication attempts and reporting all successful and failed duplications.
| Field Summary | |
|---|---|
static int |
MAX_RETRIES
|
| Constructor Summary | |
|---|---|
SpaceDuplicatorReportingImpl(SpaceDuplicator spaceDuplicator,
ResultListener listener)
|
|
SpaceDuplicatorReportingImpl(SpaceDuplicator spaceDuplicator,
ResultListener listener,
long waitMillis)
|
|
| Method Summary | |
|---|---|
void |
createSpace(String spaceId)
This method creates a newly duplicated space with the arg spaceId. |
void |
deleteSpace(String spaceId)
This method deletes the duplicated space with arg spaceId. |
protected boolean |
retriesExist()
This method is intended as a helper for UNIT TESTS ONLY. |
void |
stop()
This method performs any necessary clean-up of the SpaceDuplicator. |
void |
updateSpace(String spaceId)
This method updates the duplicated space with arg spaceId. |
void |
updateSpaceAcl(String spaceId)
This method updates the duplicated space ACL with arg spaceId. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_RETRIES
| Constructor Detail |
|---|
public SpaceDuplicatorReportingImpl(SpaceDuplicator spaceDuplicator,
ResultListener listener)
public SpaceDuplicatorReportingImpl(SpaceDuplicator spaceDuplicator,
ResultListener listener,
long waitMillis)
| Method Detail |
|---|
public void createSpace(String spaceId)
SpaceDuplicator
createSpace in interface SpaceDuplicatorspaceId - of duplicated spacepublic void updateSpace(String spaceId)
SpaceDuplicator
updateSpace in interface SpaceDuplicatorspaceId - of space to updatepublic void updateSpaceAcl(String spaceId)
SpaceDuplicator
updateSpaceAcl in interface SpaceDuplicatorspaceId - of space to updatepublic void deleteSpace(String spaceId)
SpaceDuplicator
deleteSpace in interface SpaceDuplicatorspaceId - of space to deletepublic void stop()
SpaceDuplicator
stop in interface SpaceDuplicatorprotected boolean retriesExist()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||