|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GridLocalNodeIdResource
Annotates a field or a setter method for injection of local node UUID resource. Node UUID
is a globally unique node identifier and is provided to grid via GridConfiguration.
Local node ID can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements GridJob {
...
@GridLocalNodeIdResource
private UUID nodeId;
...
}
or
public class MyGridJob implements GridJob {
...
private UUID nodeId;
...
@GridLocalNodeIdResource
public void setLocalNodeId(UUID nodeId) {
this.nodeId = nodeId;
}
...
}
See GridConfiguration.getNodeId() for Grid configuration details.
| Wiki | |
| Forum |

|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - Real Time Big Data
|
|
|