com.j_spaces.core
Class SpaceCopyStatus

java.lang.Object
  extended by com.j_spaces.core.SpaceCopyStatus
All Implemented Interfaces:
Serializable

public class SpaceCopyStatus
extends Object
implements Serializable

Contains all information about space copy operation.

Since:
5.01
See Also:
IRemoteJSpaceAdmin.spaceCopy(String, Entry, boolean, int), Serialized Form

Field Summary
static String NULL_TEMPLATE
          Constant for Notify NULL template
 
Method Summary
 void addPendingNotifyTemplate(com.j_spaces.core.cluster.SyncPacket notifyTemplate)
           
 void addStatus(SpaceCopyStatus spaceCopyStatus)
          Adds given status data to this status.
 Exception getCauseException()
           
 HashMap<String,String> getDuplicateUID()
           
 List<com.j_spaces.core.cluster.SyncPacket> getPendingNotifyTempl()
           
 String getSourceMemberName()
           
 SpaceURL getSourceMemberURL()
           
 String getTargetMemberName()
           
 int getTotalBlockedEntriesByFilter()
           
 Map<String,Integer> getTotalCopiedEntries()
           
 Map<String,Integer> getTotalCopiedNotifyTemplates()
           
 int getTotalCopyObj()
           
 int getTotalDummyObj()
           
 Map<String,String> getTotalDuplicateEntries()
           
 HashMap<String,Integer> getWriteEntries()
           
 int incrementCounter()
           
 void incrementTotalDummyObjects()
           
 void setTotalDummyObj(int totalDummyObj)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_TEMPLATE

public static final String NULL_TEMPLATE
Constant for Notify NULL template

See Also:
Constant Field Values
Method Detail

getTotalDummyObj

public int getTotalDummyObj()

setTotalDummyObj

public void setTotalDummyObj(int totalDummyObj)

incrementTotalDummyObjects

public void incrementTotalDummyObjects()

incrementCounter

public int incrementCounter()

getTotalCopyObj

public int getTotalCopyObj()
Returns:
Total copied object from target member including notify templates.

getSourceMemberName

public String getSourceMemberName()
Returns:
The source member name from where all data have been copied.

getTargetMemberName

public String getTargetMemberName()
Returns:
The target member name where all data have been copied to.

getSourceMemberURL

public SpaceURL getSourceMemberURL()
Returns:
Source member URL.

getCauseException

public Exception getCauseException()
Returns:
Cause exception happened during space-copy operation.

getTotalBlockedEntriesByFilter

public int getTotalBlockedEntriesByFilter()
Returns:
Total blocked( IReplicationFilterEntry.discard() ) entries by Replication Input Filter.

getTotalCopiedEntries

public Map<String,Integer> getTotalCopiedEntries()
Returns:
Status of copied entries where Map.Entry.getKey(): classname and Map.Entry.getValue(): count.

getTotalCopiedNotifyTemplates

public Map<String,Integer> getTotalCopiedNotifyTemplates()
Returns:
Status of copied templates where Map.Entry.getKey(): classname and Map.Entry.getValue(): count. NOTE: The key of notify null templates is presented as String: NULL_NOTIFY_TEMPLATE.

getTotalDuplicateEntries

public Map<String,String> getTotalDuplicateEntries()
Returns:
Status of duplicate UID's already exist in target space. Key - UID, value - className.

toString

public String toString()
Overrides:
toString in class Object

getPendingNotifyTempl

public List<com.j_spaces.core.cluster.SyncPacket> getPendingNotifyTempl()

addPendingNotifyTemplate

public void addPendingNotifyTemplate(com.j_spaces.core.cluster.SyncPacket notifyTemplate)

addStatus

public void addStatus(SpaceCopyStatus spaceCopyStatus)
Adds given status data to this status. Used to merge different space statuses

Parameters:
spaceCopyStatus -

getWriteEntries

public HashMap<String,Integer> getWriteEntries()

getDuplicateUID

public HashMap<String,String> getDuplicateUID()