public interface D3Broadcast
This object is created using one the following methods:
D3NodeAsMaster.getHandlerForAsynchronousBroadcast(VersionKey)D3NodeAsMaster.getHandlerForSynchronousBroadcast(VersionKey)D3NodeAsMaster.getHandlerForSynchronousBroadcast(VersionKey, long).
When created, the broadcast handler can be used in the method broadcast().
This object contains information about the broadcast operation, such as:
OperationException.
VersionKey of the delivery dataspace to broadcast.See Broadcast for more information.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
D3Broadcast.Status
Global status of the snapshot broadcast operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast()
Broadcasts a snapshot in synchronous or asynchronous mode depending on the way this object has been obtained.
|
List<DeliveryMode> |
getDeliveryModes()
Returns a list of delivery modes used in this broadcast handler.
|
D3Broadcast.Status |
getDeliveryStatus()
Deprecated.
Since 5.4.0
|
D3Broadcast.Status |
getDeliveryStatus(DeliveryMode aDeliveryMode)
Global delivery status depending on the delivery mode ('Cluster' or 'Federation').
If the broadcast operation is waiting for its turn: returns 'Not initialized' status regardless of the delivery mode
If the delivery mode in the parameter is not relevant: throws an IllegalArgumentException
|
String |
getMessage()
Returns the message of the broadcast operation.
|
long |
getOperationTimeOut()
Returns the operation time-out in milliseconds.
|
String |
getStackTrace()
Returns the stack trace of the broadcast operation if it failed.
|
VersionKey |
getVersionKey()
Returns the
VersionKey of the snapshot to broadcast. |
boolean |
isFullResync()
Returns
true if the operation is full resynchronization concerned. |
void |
setOperationTimeOut(long aOperationTimeOut)
Sets the operation time out.
|
void broadcast()
throws OperationException
It can be created using one of these three methods in the API:
D3NodeAsMaster.getHandlerForAsynchronousBroadcast(VersionKey)D3NodeAsMaster.getHandlerForSynchronousBroadcast(VersionKey, long)D3NodeAsMaster.getHandlerForSynchronousBroadcast(VersionKey)This object is notified upon broadcast termination (after a commit or rollback transaction). It then provides:
OperationException - void setOperationTimeOut(long aOperationTimeOut)
asynchronous.aOperationTimeOut - in milliseconds.IllegalArgumentException - if aOperationTimeOut is negative.long getOperationTimeOut()
asynchronous, returns
-1.VersionKey getVersionKey()
VersionKey of the snapshot to broadcast.List<DeliveryMode> getDeliveryModes()
D3Broadcast.Status getDeliveryStatus(DeliveryMode aDeliveryMode)
'Not initialized' status regardless of the delivery modeIllegalArgumentExceptionD3Broadcast.Status getDeliveryStatus()
getDeliveryStatus(DeliveryMode)boolean isFullResync()
true if the operation is full resynchronization concerned. Otherwise, returns
false.String getMessage()
String getStackTrace()
null.