Class AbstractCall<R>
java.lang.Object
com.suse.salt.netapi.calls.AbstractCall<R>
- Type Parameters:
R- the return type of the called function
- All Implemented Interfaces:
Call<R>
- Direct Known Subclasses:
LocalCall, RunnerCall, WheelCall
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCall(String function, com.google.gson.reflect.TypeToken<R> returnType) Default constructor. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Call
getPayload
-
Field Details
-
moduleName
-
functionName
-
function
-
returnType
-
-
Constructor Details
-
AbstractCall
-
-
Method Details
-
getFunction
String getFunction()Return the function string containing module and function name (e.g. "test.ping").- Returns:
- function string containing module and function name (e.g. "test.ping")
-
getReturnType
Return the return type of this call.- Returns:
- returnType the return type of this call
-
getModuleName
-
getFunctionName
Return just the function name (e.g. "ping" ).- Returns:
- just the function name (e.g. "ping").
-