public class GridAuthenticationEvent 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 |
|---|
GridAuthenticationEvent()
No-arg constructor.
|
GridAuthenticationEvent(GridNode node,
String msg,
int type)
Creates authentication event with given parameters.
|
GridAuthenticationEvent(GridNode node,
String msg,
int type,
GridSecuritySubjectType subjType,
UUID subjId,
Object login)
Creates authentication event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
login()
Gets login that triggered event.
|
void |
login(Object login)
Sets login that triggered event.
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
UUID |
subjectId()
Gets subject ID that triggered the event.
|
void |
subjectId(UUID subjId)
Sets subject ID that triggered the event.
|
GridSecuritySubjectType |
subjectType()
Gets subject type that triggered the event.
|
void |
subjectType(GridSecuritySubjectType subjType)
Sets subject type that triggered the event.
|
String |
toString() |
public GridAuthenticationEvent()
public GridAuthenticationEvent(GridNode node, String msg, int type)
msg - Optional message.type - Event type.public GridAuthenticationEvent(GridNode node, String msg, int type, GridSecuritySubjectType subjType, UUID subjId, Object login)
node - Node.msg - Optional message.type - Event type.subjType - Subject type.subjId - Subject ID.public String shortDisplay()
toString() result. Suitable for humans to read.shortDisplay in interface GridEventshortDisplay in class GridEventAdaptertoString() result.public GridSecuritySubjectType subjectType()
public UUID subjectId()
public void subjectType(GridSecuritySubjectType subjType)
subjType - Subject type to set.public Object login()
public void login(Object login)
login - Login object.public void subjectId(UUID subjId)
subjId - Subject ID to set.public String toString()
toString in class GridEventAdapterCopyright © 2014. All rights reserved.