public class ReplicationFilterProvider extends Object
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.Constructor and Description |
---|
ReplicationFilterProvider(IReplicationFilter inputFilter,
IReplicationFilter outputFilter)
Constructs a new replication filter provider with both an input filter and output filter.
|
Modifier and Type | Method and Description |
---|---|
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. |
public ReplicationFilterProvider(IReplicationFilter inputFilter, IReplicationFilter outputFilter)
null
values indicating no replication filter is
perfomed.inputFilter
- The input replication filter. null
value indicates no
filter.outputFilter
- The output replication filter. null
value indicates no
filter.public IReplicationFilter getInputFilter()
null
value indicates no filter.public IReplicationFilter getOutputFilter()
null
value indicates no filter.public boolean isActiveWhenBackup()
true
if the filter should be active when the space is in backup mode.
Default to true
.public void setActiveWhenBackup(boolean activeWhenBackup)
true
if the filter should be active when the space is in backup mode. Default to
true
.public boolean isShutdownSpaceOnInitFailure()
true
if the space should shutdown on filter init failure. Defaults to
false
.public void setShutdownSpaceOnInitFailure(boolean shutdownSpaceOnInitFailure)
true
if the space should shutdown on filter init failure. Defaults to
false
.Copyright © GigaSpaces.