Package com.j_spaces.core
Class SpaceCopyStatusImpl
java.lang.Object
com.j_spaces.core.SpaceCopyStatusImpl
- All Implemented Interfaces:
SpaceCopyStatus,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final StringConstant for Notify NULL templatestatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDuplicateUID(String className, String UID) voidaddNotifyTemplate(String templateName) voidaddNotifyTemplate(String templateName, EventRegistration eventRegistration) voidaddWriteEntry(String entryName) intintintintvoidvoidsetCauseException(Exception causeEx) voidsetNotifyTemplateCount(String className, int count) voidsetOperationType(short operationType) voidsetSourceMember(String sourceMember, SpaceURL sourceMemberUrl) voidsetTotalDummyObj(int totalDummyObj) voidsetWriteCount(String className, int count) toString()
-
Field Details
-
RECOVERY_TYPE
public static final short RECOVERY_TYPE- See Also:
-
COPY_TYPE
public static final short COPY_TYPE- See Also:
-
NULL_TEMPLATE
Constant for Notify NULL template- See Also:
-
-
Constructor Details
-
SpaceCopyStatusImpl
-
-
Method Details
-
getTotalDummyObj
public int getTotalDummyObj()- Specified by:
getTotalDummyObjin interfaceSpaceCopyStatus
-
setTotalDummyObj
public void setTotalDummyObj(int totalDummyObj) - Specified by:
setTotalDummyObjin interfaceSpaceCopyStatus
-
incrementTotalDummyObjects
public void incrementTotalDummyObjects()- Specified by:
incrementTotalDummyObjectsin interfaceSpaceCopyStatus
-
incrementCounter
public int incrementCounter()- Specified by:
incrementCounterin interfaceSpaceCopyStatus
-
getTotalCopyObj
public int getTotalCopyObj()- Specified by:
getTotalCopyObjin interfaceSpaceCopyStatus- Returns:
- Total copied object from target member including notify templates.
-
getSourceMemberName
- Specified by:
getSourceMemberNamein interfaceSpaceCopyStatus- Returns:
- The source member name from where all data have been copied.
-
getTargetMemberName
- Specified by:
getTargetMemberNamein interfaceSpaceCopyStatus- Returns:
- The target member name where all data have been copied to.
-
getSourceMemberURL
- Specified by:
getSourceMemberURLin interfaceSpaceCopyStatus- Returns:
- Source member URL.
-
getCauseException
- Specified by:
getCauseExceptionin interfaceSpaceCopyStatus- Returns:
- Cause exception happened during space-copy operation.
-
setCauseException
-
getTotalBlockedEntriesByFilter
public int getTotalBlockedEntriesByFilter()- Specified by:
getTotalBlockedEntriesByFilterin interfaceSpaceCopyStatus- Returns:
- Total blocked( IReplicationFilterEntry.discard() ) entries by Replication Input Filter.
-
getTotalCopiedEntries
- Specified by:
getTotalCopiedEntriesin interfaceSpaceCopyStatus- Returns:
- Status of copied entries where Map.Entry.getKey(): classname and Map.Entry.getValue(): count.
-
getTotalCopiedNotifyTemplates
- Specified by:
getTotalCopiedNotifyTemplatesin interfaceSpaceCopyStatus- Returns:
- Status of copied templates where Map.Entry.getKey(): classname and
Map.Entry.getValue(): count. NOTE: The key of notify
nulltemplates is presented as String: NULL_NOTIFY_TEMPLATE.
-
getTotalDuplicateEntries
- Specified by:
getTotalDuplicateEntriesin interfaceSpaceCopyStatus- Returns:
- Status of duplicate UID's already exist in target space. Key - UID, value - className.
-
setOperationType
public void setOperationType(short operationType) -
getWriteEntries
- Specified by:
getWriteEntriesin interfaceSpaceCopyStatus
-
getDuplicateUID
- Specified by:
getDuplicateUIDin interfaceSpaceCopyStatus
-
getNotifyTemplRegistration
- Specified by:
getNotifyTemplRegistrationin interfaceSpaceCopyStatus
-
setSourceMember
-
addWriteEntry
-
setWriteCount
-
addNotifyTemplate
-
setNotifyTemplateCount
-
addNotifyTemplate
-
addDuplicateUID
-
toString
-