public class GridSecureSessionEvent 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) -
asynchronously querying events occurred on the nodes specified, including remote nodes.
GridEvents.localQuery(GridPredicate) -
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...).
It is highly recommended to enable only those events that your application logic requires
by using 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 |
|---|
GridSecureSessionEvent()
No-arg constructor.
|
GridSecureSessionEvent(UUID nodeId,
String msg,
int type)
Creates secure session event with given parameters.
|
GridSecureSessionEvent(UUID nodeId,
String msg,
int type,
GridSecuritySubjectType subjType,
byte[] subjId)
Creates secure session event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
byte[] |
subjectId()
Gets subject ID that triggered the event.
|
void |
subjectId(byte[] 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 GridSecureSessionEvent()
public GridSecureSessionEvent(UUID nodeId, String msg, int type)
nodeId - Node ID.msg - Optional message.type - Event type.public GridSecureSessionEvent(UUID nodeId, String msg, int type, GridSecuritySubjectType subjType, byte[] subjId)
nodeId - Node ID.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 byte[] subjectId()
public void subjectType(GridSecuritySubjectType subjType)
subjType - Subject type to set.public void subjectId(byte[] subjId)
subjId - Subject ID to set.public String toString()
toString in class GridEventAdapter
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014