public class GridAuthorizationEvent extends GridEventAdapter
Grid events are used for notification about what happens within the grid. Note that by design GridGain keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
GridEvents.remoteQuery(GridPredicate, long, int...) -
asynchronously querying events occurred on the nodes specified, including remote nodes.
GridEvents.localQuery(GridPredicate, int...) -
querying only local events stored on this local node.
GridEvents.localListen(GridPredicate, int...) -
listening to local grid events (events from remote nodes not included).
GridEvents.waitForLocal(GridPredicate, int...).
GridConfiguration.getIncludeEventTypes() method in GridGain configuration. Note that certain
events are required for GridGain's internal operations and such events will still be generated but not stored by
event storage SPI if they are disabled in GridGain configuration.| Constructor and Description |
|---|
GridAuthorizationEvent()
No-arg constructor.
|
GridAuthorizationEvent(GridNode node,
String msg,
int type)
Creates authorization event with given parameters.
|
GridAuthorizationEvent(GridNode node,
String msg,
int type,
GridSecurityPermission op,
GridSecuritySubject subj)
Creates authorization event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
GridSecurityPermission |
operation()
Gets requested operation.
|
void |
operation(GridSecurityPermission op)
Sets requested operation.
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
GridSecuritySubject |
subject()
Gets authenticated subject.
|
void |
subject(GridSecuritySubject subj)
Sets authenticated subject.
|
String |
toString() |
public GridAuthorizationEvent()
public GridAuthorizationEvent(GridNode node, String msg, int type)
msg - Optional message.type - Event type.public GridAuthorizationEvent(GridNode node, String msg, int type, GridSecurityPermission op, GridSecuritySubject subj)
node - Node.msg - Optional message.type - Event type.op - Requested operation.subj - Authenticated subject.public String shortDisplay()
toString() result. Suitable for humans to read.shortDisplay in interface GridEventshortDisplay in class GridEventAdaptertoString() result.public GridSecurityPermission operation()
public void operation(GridSecurityPermission op)
op - Requested operation.public GridSecuritySubject subject()
public void subject(GridSecuritySubject subj)
subj - Authenticated subject.public String toString()
toString in class GridEventAdapterCopyright © 2014. All rights reserved.