Package org.jgroups.tests.perf
Class PerfUtil.CustomCall
- java.lang.Object
-
- org.jgroups.blocks.MethodCall
-
- org.jgroups.tests.perf.PerfUtil.CustomCall
-
- All Implemented Interfaces:
Constructable<MethodCall>,Streamable
- Enclosing class:
- PerfUtil
public static class PerfUtil.CustomCall extends MethodCall
Abstract class which uses IDs for methods. Argument serialization and deserialization can be overridden
-
-
Field Summary
Fields Modifier and Type Field Description protected static byteCONFIGprotected static byteEXCEPTIONprotected static byteNORMALprotected static byteRESULTS-
Fields inherited from class org.jgroups.blocks.MethodCall
args, method, method_id, method_name, types
-
-
Constructor Summary
Constructors Constructor Description CustomCall()CustomCall(short method_id, java.lang.Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<? extends MethodCall>create()Creates an instance of the class implementing this interfaceprotected java.lang.ObjectreadArg(java.io.DataInput in)protected voidwriteArg(java.io.DataOutput out, java.lang.Object obj)-
Methods inherited from class org.jgroups.blocks.MethodCall
assertNotNegative, getArgs, getMethod, getMethodId, getMethodName, invoke, invoke, readArgs, readFrom, readTypes, setArgs, setMethod, setMethodId, toString, toStringDetails, useIds, writeArgs, writeMethod, writeTo, writeTypes
-
-
-
-
Field Detail
-
NORMAL
protected static final byte NORMAL
- See Also:
- Constant Field Values
-
EXCEPTION
protected static final byte EXCEPTION
- See Also:
- Constant Field Values
-
CONFIG
protected static final byte CONFIG
- See Also:
- Constant Field Values
-
RESULTS
protected static final byte RESULTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public java.util.function.Supplier<? extends MethodCall> create()
Description copied from interface:ConstructableCreates an instance of the class implementing this interface- Specified by:
createin interfaceConstructable<MethodCall>- Overrides:
createin classMethodCall
-
writeArg
protected void writeArg(java.io.DataOutput out, java.lang.Object obj) throws java.io.IOException- Overrides:
writeArgin classMethodCall- Throws:
java.io.IOException
-
readArg
protected java.lang.Object readArg(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Overrides:
readArgin classMethodCall- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-