Package com.orchestranetworks.d3
Interface D3NodeAsMaster
- All Superinterfaces:
D3Node
Represents the external view of the D3 engine and offers primary administrative functionalities.
To create a primary engine, use
D3NodeFactory.createForMasterFromSession(com.orchestranetworks.service.Session)
.
- Since:
- 5.4.2
-
Method Summary
Modifier and TypeMethodDescriptiongetD3SlaveFromId
(String aSlaveId) Deprecated.getD3SlaveFromRepositoryId
(String aRepositoryId) Deprecated.Since 5.5.1, this method has been replaced byD3Node.getD3SlaveFromRepositoryId(String)
.getD3SlaveFromRepositoryLabel
(String aRepositoryLabel) Deprecated.Since 5.5.1, this method has been replaced byD3Node.getD3SlaveFromRepositoryLabel(String)
.getHandlerForAsynchronousBroadcast
(VersionKey aSnapshotKey) Returns the asynchronous broadcast handler in order to perform broadcast using the methodD3Broadcast.broadcast()
.getHandlerForSynchronousBroadcast
(VersionKey aSnapshotKey) Returns the synchronous broadcast handler in order to perform broadcast using the methodD3Broadcast.broadcast()
.getHandlerForSynchronousBroadcast
(VersionKey aSnapshotKey, long aTimeOut) Returns the synchronous broadcast handler in order to perform broadcast using the methodD3Broadcast.broadcast()
.getRegisteredSlaves
(BranchKey aDataSpaceKey) Deprecated.Since 5.5.1, this method has been replaced byD3Node.getRegisteredSlaves(BranchKey)
.Methods inherited from interface com.orchestranetworks.d3.D3Node
getBroadcastVersion, getRepositoryId, getRepositoryLabel, isMasterHome, isSlaveHome
-
Method Details
-
getHandlerForAsynchronousBroadcast
Returns the asynchronous broadcast handler in order to perform broadcast using the methodD3Broadcast.broadcast()
.The timeout is not applicable in asynchronous mode.
- Parameters:
aSnapshotKey
- snapshot to be broadcast.- Throws:
IllegalArgumentException
-- if
aSnapshotKey
isnull
. - if there is no
AdaptationHome
foraSnapshotKey
. - if the snapshot is not valid.
- if the parent dataspace of the snapshot is not a delivery dataspace.
- if the delivery dataspace is not associated with a delivery profile.
- if
- Since:
- 5.4.2
-
getHandlerForSynchronousBroadcast
Returns the synchronous broadcast handler in order to perform broadcast using the methodD3Broadcast.broadcast()
.- Parameters:
aSnapshotKey
- snapshot to be broadcast.aTimeOut
- the maximum time to wait in milliseconds and if0
it is considering unlimited.- Throws:
IllegalArgumentException
-- See
getHandlerForAsynchronousBroadcast(VersionKey)
. - if
aTimeOut
is negative.
- See
- Since:
- 5.4.2
-
getHandlerForSynchronousBroadcast
Returns the synchronous broadcast handler in order to perform broadcast using the methodD3Broadcast.broadcast()
.The default timeout of the operation is set to
0
(unlimited).- Parameters:
aSnapshotKey
- snapshot to be broadcast.- Throws:
IllegalArgumentException
- SeegetHandlerForAsynchronousBroadcast(VersionKey)
.- Since:
- 5.4.2
-
getD3SlaveFromId
Deprecated.Since 5.5.1, this method has been replaced bygetD3SlaveFromRepositoryLabel(String)
.Returns the replica for the specified identifier. If unknown to the primary repository, it returnsnull
.- Parameters:
aSlaveId
- remote repository label.- Throws:
NullPointerException
- ifaSlaveId
is null.- Since:
- 5.4.2
-
getD3SlaveFromRepositoryId
Deprecated.Since 5.5.1, this method has been replaced byD3Node.getD3SlaveFromRepositoryId(String)
.Returns the replica for the specified identifier. If unknown to the primary repository, it returnsnull
.- Specified by:
getD3SlaveFromRepositoryId
in interfaceD3Node
- Parameters:
aRepositoryId
- remote replica repository ID.- Throws:
NullPointerException
- ifaRepositoryId
is null.- Since:
- 5.5.0
-
getD3SlaveFromRepositoryLabel
Deprecated.Since 5.5.1, this method has been replaced byD3Node.getD3SlaveFromRepositoryLabel(String)
.Returns the replica for the specified label. If unknown to the primary repository, it returnsnull
.- Specified by:
getD3SlaveFromRepositoryLabel
in interfaceD3Node
- Parameters:
aRepositoryLabel
- remote replica repository label.- Throws:
NullPointerException
- ifaRepositoryLabel
is null.- Since:
- 5.5.0
-
getRegisteredSlaves
Deprecated.Since 5.5.1, this method has been replaced byD3Node.getRegisteredSlaves(BranchKey)
.Returns the list of theD3Slave
object(s) subscribed to the dataspace specified in the parameter.- Specified by:
getRegisteredSlaves
in interfaceD3Node
- Parameters:
aDataSpaceKey
- D3 dataspace key.- Since:
- 5.4.2
-
getD3SlaveFromRepositoryLabel(String)
.