public class AuthorizationEvent extends EventAdapter
Grid events are used for notification about what happens within the grid. Note that by design Ignite keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
IgniteEvents.remoteQuery(org.apache.ignite.lang.IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(org.apache.ignite.lang.IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(org.apache.ignite.lang.IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)
.
IgniteConfiguration.getIncludeEventTypes()
method in Ignite configuration. Note that certain
events are required for Ignite's internal operations and such events will still be generated but not stored by
event storage if they are disabled in Ignite configuration.Constructor and Description |
---|
AuthorizationEvent()
No-arg constructor.
|
AuthorizationEvent(ClusterNode node,
String msg,
int type)
Creates authorization event with given parameters.
|
AuthorizationEvent(ClusterNode node,
String msg,
int type,
SecurityPermission op,
SecuritySubject subj)
Creates authorization event with given parameters.
|
Modifier and Type | Method and Description |
---|---|
SecurityPermission |
operation()
Gets requested operation.
|
void |
operation(SecurityPermission op)
Sets requested operation.
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
SecuritySubject |
subject()
Gets authenticated subject.
|
void |
subject(SecuritySubject subj)
Sets authenticated subject.
|
String |
toString() |
public AuthorizationEvent()
public AuthorizationEvent(ClusterNode node, String msg, int type)
msg
- Optional message.type
- Event type.public AuthorizationEvent(ClusterNode node, String msg, int type, SecurityPermission op, SecuritySubject 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 Event
shortDisplay
in class EventAdapter
toString()
result.public SecurityPermission operation()
public void operation(SecurityPermission op)
op
- Requested operation.public SecuritySubject subject()
public void subject(SecuritySubject subj)
subj
- Authenticated subject.public String toString()
toString
in class EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024