GigaSpaces XAP 8.0 API

com.j_spaces.core.cluster
Class ReplicationFilterProvider

java.lang.Object
  extended by com.j_spaces.core.cluster.ReplicationFilterProvider

public class ReplicationFilterProvider
extends Object

An IReplicationFilter provider for both input and output replication filteres. Allows, when configuring an embedded Space, to be used to inject actual instances of the replication filters.

Author:
kimchy

Constructor Summary
ReplicationFilterProvider(IReplicationFilter inputFilter, IReplicationFilter outputFilter)
          Constructs a new replication filter provider with both an input filter and output filter.
 
Method Summary
 IReplicationFilter getInputFilter()
          Return the input replication filter.
 IReplicationFilter getOutputFilter()
          Return the output replication filter.
 boolean isActiveWhenBackup()
          Returns true if the filter should be active when the space is in backup mode.
 boolean isShutdownSpaceOnInitFailure()
          Returns true if the space should shutdown on filter init failure.
 void setActiveWhenBackup(boolean activeWhenBackup)
          true if the filter should be active when the space is in backup mode.
 void setShutdownSpaceOnInitFailure(boolean shutdownSpaceOnInitFailure)
          true if the space should shutdown on filter init failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationFilterProvider

public ReplicationFilterProvider(IReplicationFilter inputFilter,
                                 IReplicationFilter outputFilter)
Constructs a new replication filter provider with both an input filter and output filter. Note, both filters can have null values indicating no replication filter is perfomed.

Parameters:
inputFilter - The input replication filter. null value indicates no filter.
outputFilter - The output replication filter. null value indicates no filter.
Method Detail

getInputFilter

public IReplicationFilter getInputFilter()
Return the input replication filter. null value indicates no filter.


getOutputFilter

public IReplicationFilter getOutputFilter()
Return the output replication filter. null value indicates no filter.


isActiveWhenBackup

public boolean isActiveWhenBackup()
Returns true if the filter should be active when the space is in backup mode. Default to true.


setActiveWhenBackup

public void setActiveWhenBackup(boolean activeWhenBackup)
true if the filter should be active when the space is in backup mode. Default to true.


isShutdownSpaceOnInitFailure

public boolean isShutdownSpaceOnInitFailure()
Returns true if the space should shutdown on filter init failure. Defaults to false.


setShutdownSpaceOnInitFailure

public void setShutdownSpaceOnInitFailure(boolean shutdownSpaceOnInitFailure)
true if the space should shutdown on filter init failure. Defaults to false.


GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.