Class ODeclareDbMessage
java.lang.Object
com.orientechnologies.orient.distributed.context.coordination.message.operation.ODeclareDbMessage
- All Implemented Interfaces:
OOperationMessage
-
Constructor Summary
ConstructorsConstructorDescriptionODeclareDbMessage(String name, ODatabaseId id, Set<OAddNodeInfo> partecipants, int minimumQuorum) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(OOperationContext ctx, OTransactionIdPromise promise) voidcancel(OOperationContext ctx, OTransactionIdPromise promise) getId()intgetName()shortgetType()static ODeclareDbMessagereadNetwork(DataInput input) voidserialize(DataOutput out) toString()validate(OOperationContext ctx, OTransactionIdPromise promise) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.distributed.context.coordination.message.operation.OOperationMessage
writeNetwork
-
Constructor Details
-
ODeclareDbMessage
public ODeclareDbMessage(String name, ODatabaseId id, Set<OAddNodeInfo> partecipants, int minimumQuorum)
-
-
Method Details
-
validate
- Specified by:
validatein interfaceOOperationMessage
-
apply
- Specified by:
applyin interfaceOOperationMessage
-
cancel
- Specified by:
cancelin interfaceOOperationMessage
-
serialize
- Specified by:
serializein interfaceOOperationMessage- Throws:
IOException
-
getType
public short getType()- Specified by:
getTypein interfaceOOperationMessage
-
readNetwork
- Throws:
IOException
-
getId
-
getName
-
getPartecipants
-
getMinimumQuorum
public int getMinimumQuorum() -
toString
-