T - the type of the value to writeScalarisOppublic class ScalarisIncrementOp2<T extends java.lang.Number> extends java.lang.Object implements ScalarisOp
| Constructor | Description |
|---|---|
ScalarisIncrementOp2(java.lang.String key,
T value) |
Creates a write operation.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
doPhase(int phase,
int firstOp,
ResultList results,
RequestList requests) |
Executes the given phase.
|
T |
getIncValue() |
Gets the value to increment by.
|
java.lang.String |
getKey() |
Gets the key to write to.
|
java.lang.String |
toString() |
|
int |
workPhases() |
Gets the number of work phases needed by this operation (not including
the final result verification phase).
|
public ScalarisIncrementOp2(java.lang.String key,
T value)
key - the key to write tovalue - the value to writepublic int workPhases()
ScalarisOpworkPhases in interface ScalarisOppublic final int doPhase(int phase,
int firstOp,
ResultList results,
RequestList requests)
throws com.ericsson.otp.erlang.OtpErlangException,
UnknownException,
java.lang.IllegalArgumentException
ScalarisOpdoPhase in interface ScalarisOpphase - the number of the current phasefirstOp - the current operation's index in the result listresults - the results from the previous operations
(may be null if there was none)requests - the requests for the next operations
(may be null if there are none, i.e. in the
verification phase)com.ericsson.otp.erlang.OtpErlangException - if an error occured verifying a result from previous
operationsUnknownException - if an error occured verifying a result from previous
operationsjava.lang.IllegalArgumentException - if the given work phase is not supportedScalarisOp.workPhases()public java.lang.String toString()
toString in interface ScalarisOptoString in class java.lang.Objectpublic java.lang.String getKey()
public T getIncValue()