public interface VisorPluginModel
VisorExtensionPoint.VisorExtensionPoint(VisorPluginModel)
.Modifier and Type | Method and Description |
---|---|
void |
addTopologyListener(VisorTopologyListener lsnr)
Install topology listener.
|
boolean |
connected()
Whether Visor connected to the grid.
|
<A,R> R |
execute(Class<? extends ComputeTask<A,R>> taskCls,
Collection<UUID> nodeIds,
A arg)
Executes given task on this grid projection.
|
<A,R> R |
execute(String taskName,
Collection<UUID> nodeIds,
A arg)
Executes given task on this grid projection.
|
IgniteLogger |
logger()
Get logger.
|
Collection<UUID> |
nodeIds() |
void |
removeTopologyListener(VisorTopologyListener lsnr)
Uninstall topology listener.
|
boolean connected()
true
if Visor connected to the grid.IgniteLogger logger()
void addTopologyListener(VisorTopologyListener lsnr) throws IllegalStateException
lsnr
- Listener to add.IllegalStateException
- If Visor not connected to the grid.void removeTopologyListener(VisorTopologyListener lsnr) throws IllegalStateException
lsnr
- Listener to remove.IllegalStateException
- If Visor not connected to the grid.Collection<UUID> nodeIds()
<A,R> R execute(Class<? extends ComputeTask<A,R>> taskCls, Collection<UUID> nodeIds, @Nullable A arg) throws IllegalStateException
ComputeTask
documentation.A
- Argument type.R
- Result type.taskCls
- Class of the task to execute. If class has ComputeTaskName
annotation,
then task is deployed under a name specified within annotation. Otherwise, full
class name is used as task name.nodeIds
- Node IDs on with execute task.arg
- Optional argument of task execution, can be null
.IllegalStateException
- If Visor not connected to the grid.<A,R> R execute(String taskName, Collection<UUID> nodeIds, @Nullable A arg) throws IllegalStateException
ComputeTask
documentation.A
- Argument type.R
- Result type.taskName
- Name of the task to execute.nodeIds
- Node IDs on with execute task.arg
- Optional argument of task execution, can be null
.IllegalStateException
- If Visor not connected to the grid.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019