@Addresses(value={"/subsystem=infinispan/cache-container=*/replicated-cache=*/component=backups/backup=*","/subsystem=infinispan/cache-container=*/distributed-cache=*/component=backups/backup=*"}) public class Backup<T extends Backup<T>> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Integer |
afterFailures()
Indicates the number of failures after which this backup site should go
offline.
|
T |
afterFailures(Integer value)
Indicates the number of failures after which this backup site should go
offline.
|
Boolean |
enabled()
Indicates whether or not this backup site is enabled.
|
T |
enabled(Boolean value)
Indicates whether or not this backup site is enabled.
|
String |
failurePolicy()
The policy to follow when connectivity to the backup site fails.
|
T |
failurePolicy(String value)
The policy to follow when connectivity to the backup site fails.
|
String |
getKey() |
Long |
minWait()
Indicates the minimum time (in milliseconds) to wait after the max number
of failures is reached, after which this backup site should go offline.
|
T |
minWait(Long value)
Indicates the minimum time (in milliseconds) to wait after the max number
of failures is reached, after which this backup site should go offline.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
String |
strategy()
The backup strategy for this cache
|
T |
strategy(String value)
The backup strategy for this cache
|
Long |
timeout()
The timeout for replicating to the backup site.
|
T |
timeout(Long value)
The timeout for replicating to the backup site.
|
public Backup(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="after-failures") public Integer afterFailures()
public T afterFailures(Integer value)
@ModelNodeBinding(detypedName="enabled") public Boolean enabled()
@ModelNodeBinding(detypedName="failure-policy") public String failurePolicy()
public T failurePolicy(String value)
@ModelNodeBinding(detypedName="min-wait") public Long minWait()
public T minWait(Long value)
@ModelNodeBinding(detypedName="strategy") public String strategy()
@ModelNodeBinding(detypedName="timeout") public Long timeout()
Copyright © 2015 JBoss by Red Hat. All rights reserved.