GigaSpaces XAP 8.0 API

org.openspaces.admin.space
Class ReplicationTarget

java.lang.Object
  extended by org.openspaces.admin.space.ReplicationTarget

public class ReplicationTarget
extends Object

Represents a replication target from one SpaceInstance to the other.

Author:
kimchy

Constructor Summary
ReplicationTarget(org.openspaces.admin.internal.space.InternalSpaceInstance spaceInstance, ReplicationStatus replicationStatus, String memberName, ReplicationTargetType targetType)
           
 
Method Summary
 String getMemberName()
          Returns the member name of this target.
 ReplicationStatus getReplicationStatus()
          Returns the replication status.
 org.openspaces.admin.internal.space.InternalSpaceInstance getSpaceInstance()
          Returns the space instance that will be replicated to.
 ReplicationTargetType getTargetType()
           
 boolean isMirror()
          Deprecated. Since 8.0.3 - use getTargetType() instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationTarget

public ReplicationTarget(org.openspaces.admin.internal.space.InternalSpaceInstance spaceInstance,
                         ReplicationStatus replicationStatus,
                         String memberName,
                         ReplicationTargetType targetType)
Method Detail

getSpaceInstance

public org.openspaces.admin.internal.space.InternalSpaceInstance getSpaceInstance()
Returns the space instance that will be replicated to. Can be null if replication is disabled/disconnected or the replication target is not a space (ReplicationTargetType.GATEWAY).


getReplicationStatus

public ReplicationStatus getReplicationStatus()
Returns the replication status.


getMemberName

public String getMemberName()
Returns the member name of this target.


isMirror

@Deprecated
public boolean isMirror()
Deprecated. Since 8.0.3 - use getTargetType() instead.

Returns:
true if target is a Mirror Space.

getTargetType

public ReplicationTargetType getTargetType()
Returns:
the target type
Since:
8.0.3

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.