org.nuiton.topia.replication.model
Class ReplicationOperationDef

java.lang.Object
  extended by org.nuiton.topia.replication.model.ReplicationOperationDef
All Implemented Interfaces:
Comparable<ReplicationOperationDef>

public class ReplicationOperationDef
extends Object
implements Comparable<ReplicationOperationDef>

Definition of a concrete operation to execute.

A such operation involves :

This definition is detected when building replication model.

Then when starting replication, based on this definition, we can instanciate the operation to execute.

Note: Such objects can be comparable via their phase.

Since:
2.2.0
Author:
tchemit

Field Summary
protected  ReplicationNode node
           
protected  Class<? extends TopiaReplicationOperation> operationClass
           
protected  Object[] parameters
           
protected  ReplicationOperationPhase phase
           
 
Constructor Summary
ReplicationOperationDef(ReplicationOperationPhase phase, Class<? extends TopiaReplicationOperation> operation, ReplicationNode node, Object... parameters)
           
 
Method Summary
 int compareTo(ReplicationOperationDef o)
           
 boolean equals(Object o)
           
 TopiaEntityEnum getContract()
           
 Class<? extends TopiaEntity> getEntityType()
           
 ReplicationNode getNode()
           
 Class<? extends TopiaReplicationOperation> getOperationClass()
           
 Object[] getParameters()
           
 ReplicationOperationPhase getPhase()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

phase

protected final ReplicationOperationPhase phase

operationClass

protected final Class<? extends TopiaReplicationOperation> operationClass

node

protected final ReplicationNode node

parameters

protected final Object[] parameters
Constructor Detail

ReplicationOperationDef

public ReplicationOperationDef(ReplicationOperationPhase phase,
                               Class<? extends TopiaReplicationOperation> operation,
                               ReplicationNode node,
                               Object... parameters)
Method Detail

getNode

public ReplicationNode getNode()

getParameters

public Object[] getParameters()

getOperationClass

public Class<? extends TopiaReplicationOperation> getOperationClass()

getPhase

public ReplicationOperationPhase getPhase()

getContract

public TopiaEntityEnum getContract()

getEntityType

public Class<? extends TopiaEntity> getEntityType()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(ReplicationOperationDef o)
Specified by:
compareTo in interface Comparable<ReplicationOperationDef>


Copyright © 2004-2011 CodeLutin. All Rights Reserved.