public interface D3NodeAsSlaveOnStartup extends D3NodeAsSlave
ModuleRegistrationAdvancedD3.handleRepositoryStartup(D3NodeAsSlaveOnStartup)
Modifier and Type | Method and Description |
---|---|
AdaptationHome |
createDeliveryDataspace(BranchKey aDataspaceKey)
Creates a delivery dataspace or gets the existing one.
|
Session |
createSystemUserSession(String aTrackingInformationComplementOrNull)
Creates a session executing as the "system user".
|
Class<? extends D3ReceiveBroadcastTrigger> |
getRegisteredBroadcastTrigger(AdaptationHome aDataspace)
Returns the 'D3 receive broadcast trigger' class registered according to a delivery dataspace.
|
void |
registerBroadcastTrigger(AdaptationHome aDataspace,
Class<? extends D3ReceiveBroadcastTrigger> aTriggerOrNull)
Registers or unregisters the 'D3 receive broadcast trigger'.
|
void |
registerDeliveryDataspace(AdaptationHome aDataspace)
Registers the delivery dataspace.
|
getBroadcastVersion, getD3SlaveFromRepositoryId, getD3SlaveFromRepositoryLabel, getRegisteredSlaves, getRepositoryId, getRepositoryLabel, isMasterHome, isSlaveHome
AdaptationHome createDeliveryDataspace(BranchKey aDataspaceKey) throws OperationException
To prepare advanced D3 environment, create all root datasets for each
dataspace. Then, refresh all data models (with boolean
value
defined to true
). Finally, register the delivery dataspace.
aDataspaceKey
- the dataspace identifier.IllegalArgumentException
- if the aDataspaceKey
already exists and location is not under '[D3]
reference dataspaces'.OperationException
- if the dataspace creation aborts.Repository.lookupHome(boolean, HomeKey)
,
ModuleContextOnRepositoryStartup.createSystemUserSession(String)
,
ProcedureContext.doCreateRoot(com.orchestranetworks.schema.SchemaLocation, AdaptationReference, Profile)
,
registerDeliveryDataspace(AdaptationHome)
,
Repository.refreshSchemas(boolean)
Session createSystemUserSession(String aTrackingInformationComplementOrNull)
This means that this session will have all privileges.
aTrackingInformationComplementOrNull
- the tracking information complement is added to a specific tracking
information.Class<? extends D3ReceiveBroadcastTrigger> getRegisteredBroadcastTrigger(AdaptationHome aDataspace) throws OperationException
aDataspace
- the dataspace identifier.IllegalArgumentException
- if the aDataspace
does not exist or the location is not under '[D3]
reference dataspaces'.OperationException
- if the trigger's class could not be loadedregisterDeliveryDataspace(AdaptationHome)
,
D3ReceiveBroadcastTrigger
void registerBroadcastTrigger(AdaptationHome aDataspace, Class<? extends D3ReceiveBroadcastTrigger> aTriggerOrNull) throws OperationException
aDataspace
- the dataspace identifier.aTriggerOrNull
- the trigger class to register or null
to unregister.IllegalArgumentException
- if the aDataspace
does not exist or the location is not under '[D3]
reference dataspaces'.OperationException
- if the trigger registration aborts.registerDeliveryDataspace(AdaptationHome)
,
D3ReceiveBroadcastTrigger
void registerDeliveryDataspace(AdaptationHome aDataspace) throws OperationException
Optional: Register or unregister a broadcast trigger after the delivery dataspace registration.
aDataspace
- the dataspace identifier.IllegalArgumentException
- if the aDataspace
does not exist or the location is not under '[D3]
reference dataspaces'.OperationException
- if the dataspace registration aborts.createDeliveryDataspace(BranchKey)
,
registerBroadcastTrigger(AdaptationHome, Class)