public class GridifyArgumentAdapter extends Object implements GridifyArgument
GridifyArgument
interface. This adapter
should be used in custom grid job implementations.
See Gridify
documentation for more information about execution of
gridified
methods.
Gridify
,
Serialized FormConstructor and Description |
---|
GridifyArgumentAdapter()
Empty constructor.
|
GridifyArgumentAdapter(Class<?> cls,
String mtdName,
Class<?>[] types,
Object[] params,
Object target)
Creates a fully initialized gridify argument.
|
GridifyArgumentAdapter(GridifyArgument orig,
Object... newParams)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getMethodClass()
Gets class to which the executed method belongs.
|
String |
getMethodName()
Gets method name.
|
Object[] |
getMethodParameters()
Gets method parameters in the same order they appear in method
signature.
|
Class<?>[] |
getMethodParameterTypes()
Gets method parameter types in the same order they appear in method
signature.
|
Object |
getTarget()
Gets target object for method execution.
|
void |
setMethodClass(Class<?> cls)
Sets method class.
|
void |
setMethodName(String mtdName)
Sets method name.
|
void |
setMethodParameters(Object... params)
Sets method parameters.
|
void |
setMethodParameterTypes(Class<?>... types)
Sets method parameter types.
|
void |
setTarget(Object target)
Sets target object for method execution.
|
String |
toString() |
void |
updateMethodParameter(Object param,
int index)
Updates method parameter.
|
void |
updateMethodParameterType(Class<?> type,
int index)
Updates parameter type.
|
public GridifyArgumentAdapter()
public GridifyArgumentAdapter(GridifyArgument orig, Object... newParams)
orig
- Copy to create this instance from.newParams
- Optional array of new parameters to override the ondes from orig
.public GridifyArgumentAdapter(Class<?> cls, String mtdName, Class<?>[] types, Object[] params, Object target)
cls
- Method class.mtdName
- Method name.types
- Method parameter types.params
- Method parameters.target
- Target object.public Class<?> getMethodClass()
getMethodClass
in interface GridifyArgument
public String getMethodName()
getMethodName
in interface GridifyArgument
public Class<?>[] getMethodParameterTypes()
getMethodParameterTypes
in interface GridifyArgument
public Object[] getMethodParameters()
getMethodParameters
in interface GridifyArgument
public void setMethodClass(Class<?> cls)
cls
- Method class.public void setMethodName(String mtdName)
mtdName
- Method name.public void setMethodParameterTypes(Class<?>... types)
types
- Method parameter types.public void updateMethodParameterType(Class<?> type, int index)
type
- Parameter type to set.index
- Index of the parameter.public void setMethodParameters(Object... params)
params
- Method parameters.public void updateMethodParameter(Object param, int index)
param
- Method parameter value to set.index
- Parameter's index.public void setTarget(Object target)
target
- Target object for method execution.public Object getTarget()
getTarget
in interface GridifyArgument
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019