|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TopiaReplicationOperation
Le contrat d'une operation a effectuer lors de la replication.
Le module propose des operations de base dans le paquetageorg.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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
@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'operation
UnsupportedOperationException - 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 à traiter
Exception - pour toute erreur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||