org.duracloud.services.duplication.impl
Class ContentDuplicatorReportingImpl

java.lang.Object
  extended by org.duracloud.services.duplication.impl.ContentDuplicatorReportingImpl
All Implemented Interfaces:
ContentDuplicator

public class ContentDuplicatorReportingImpl
extends java.lang.Object
implements ContentDuplicator

Author:
Andrew Woods Date: 9/18/11

Field Summary
static int MAX_RETRIES
           
 
Constructor Summary
ContentDuplicatorReportingImpl(ContentDuplicator contentDuplicator, ResultListener listener)
           
ContentDuplicatorReportingImpl(ContentDuplicator contentDuplicator, ResultListener listener, long waitMillis)
           
 
Method Summary
 java.lang.String createContent(java.lang.String spaceId, java.lang.String contentId)
          This method creates a newly duplicated content item in the arg spaceId with the arg contentId.
 void deleteContent(java.lang.String spaceId, java.lang.String contentId)
          This method deletes an existing content item in the arg spaceId with the arg contentId
protected  boolean eventsExist()
          This method is intended as a helper for UNIT TESTS ONLY.
 void stop()
          This method performs any necessary clean-up of the ContentDuplicator.
 void updateContent(java.lang.String spaceId, java.lang.String contentId)
          This method updates an existing content item in the arg spaceId with the arg contentId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RETRIES

public static final int MAX_RETRIES
See Also:
Constant Field Values
Constructor Detail

ContentDuplicatorReportingImpl

public ContentDuplicatorReportingImpl(ContentDuplicator contentDuplicator,
                                      ResultListener listener)

ContentDuplicatorReportingImpl

public ContentDuplicatorReportingImpl(ContentDuplicator contentDuplicator,
                                      ResultListener listener,
                                      long waitMillis)
Method Detail

createContent

public java.lang.String createContent(java.lang.String spaceId,
                                      java.lang.String contentId)
Description copied from interface: ContentDuplicator
This method creates a newly duplicated content item in the arg spaceId with the arg contentId.

Specified by:
createContent in interface ContentDuplicator
Parameters:
spaceId - of content item
contentId - of content item
Returns:
checksum of content

updateContent

public void updateContent(java.lang.String spaceId,
                          java.lang.String contentId)
Description copied from interface: ContentDuplicator
This method updates an existing content item in the arg spaceId with the arg contentId

Specified by:
updateContent in interface ContentDuplicator
Parameters:
spaceId - of content item
contentId - of content item

deleteContent

public void deleteContent(java.lang.String spaceId,
                          java.lang.String contentId)
Description copied from interface: ContentDuplicator
This method deletes an existing content item in the arg spaceId with the arg contentId

Specified by:
deleteContent in interface ContentDuplicator
Parameters:
spaceId - of content item
contentId - of content item

stop

public void stop()
Description copied from interface: ContentDuplicator
This method performs any necessary clean-up of the ContentDuplicator.

Specified by:
stop in interface ContentDuplicator

eventsExist

protected boolean eventsExist()
This method is intended as a helper for UNIT TESTS ONLY.

Returns:
true if retries are in-progress


Copyright © 2009-2011 DuraSpace. All Rights Reserved.