public interface TopiaReplicationOperation
org.nuiton.topia.replication.operation
.
Pour definir une nouvelle implantation d'operation, il faut l'enregister
en tant que service (au sens de la classe ServiceLoader
,
c'est à dire ajouter dans un fichier (du class-path)
META-INF/services/org.nuiton.topia.replication.TopiaReplicationOperation
une ligne avec le nom qualifie de votre implantation.
Lors du chargement du service, on detecte toutes les operations disponibles.Modifier and Type | Method and Description |
---|---|
void |
register(ReplicationModel model,
ReplicationNode ownerNode,
ReplicationOperationPhase phase,
Object... parameters)
Deprecated.
since 2.5.2, there is no difference between a user operation and an internal one. This method will be
removed in version 2.6 and never replaced
|
void |
run(TopiaReplicationContext replicationContext,
ReplicationOperationDef operationDef,
TopiaContextImplementor srcCtxt,
TopiaContextImplementor dstCtxt,
List<? extends TopiaEntity> entities)
Execute l'operation avec le parametrage donnee.
|
@Deprecated void register(ReplicationModel model, ReplicationNode ownerNode, ReplicationOperationPhase phase, Object... parameters) throws UnsupportedOperationException
TopiaReplicationService.prepare(TopiaEntityEnum[], boolean, String...)
.model
- le modele de replicationownerNode
- le noeud proprietaire de l'operationphase
- la phase ou positionner l'operationparameters
- les parametres de l'operationUnsupportedOperationException
- if can not register this operation
(says when operation is only internal)ReplicationModel
,
ReplicationOperationPhase
void run(TopiaReplicationContext replicationContext, ReplicationOperationDef operationDef, TopiaContextImplementor srcCtxt, TopiaContextImplementor dstCtxt, List<? extends TopiaEntity> entities) throws Exception
replicationContext
- le contexte de replicationoperationDef
- la definition de l'operation a realisersrcCtxt
- le context sourcedstCtxt
- le context destinationentities
- la liste des entités à traiterException
- pour toute erreurCopyright © 2004–2022 Code Lutin. All rights reserved.