public class AggregateBackupResponse extends Object implements BackupResponse
Constructor and Description |
---|
AggregateBackupResponse(BackupResponse onePcResponse,
BackupResponse twoPcResponse) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<String> |
getCommunicationErrors()
Returns the list of sites where the backups failed due to a bridge communication error (as opposed to an
error caused by Infinispan, e.g.
|
Map<String,Throwable> |
getFailedBackups() |
long |
getSendTimeMillis()
Return the time in millis when this operation was initiated.
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isSync(String siteName) |
void |
notifyAsyncAck(XSiteAsyncAckListener listener)
Invokes
XSiteAsyncAckListener for each ack received from an asynchronous cross site request. |
void |
notifyFinish(LongConsumer timeElapsedConsumer)
Registers a listener that is notified when the cross-site request is finished.
|
String |
toString() |
void |
waitForBackupToFinish() |
public AggregateBackupResponse(BackupResponse onePcResponse, BackupResponse twoPcResponse)
public void waitForBackupToFinish() throws Exception
waitForBackupToFinish
in interface BackupResponse
Exception
public Map<String,Throwable> getFailedBackups()
getFailedBackups
in interface BackupResponse
public Set<String> getCommunicationErrors()
BackupResponse
getCommunicationErrors
in interface BackupResponse
public long getSendTimeMillis()
BackupResponse
getSendTimeMillis
in interface BackupResponse
public boolean isEmpty()
isEmpty
in interface BackupResponse
public void notifyFinish(LongConsumer timeElapsedConsumer)
BackupResponse
The parameter is the time spent in the network in milliseconds.
notifyFinish
in interface BackupResponse
timeElapsedConsumer
- The Consumer
to be invoke.public void notifyAsyncAck(XSiteAsyncAckListener listener)
BackupResponse
XSiteAsyncAckListener
for each ack received from an asynchronous cross site request.
If the request times-out or failed to be sent, the listeners receives a non-null Throwable
.notifyAsyncAck
in interface BackupResponse
public boolean isSync(String siteName)
isSync
in interface BackupResponse
true
if the request for the remote site is synchronous.Copyright © 2021 JBoss by Red Hat. All rights reserved.