public class AuthenticationEvent 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(IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(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 authentication if they are disabled in Ignite configuration.Constructor and Description |
---|
AuthenticationEvent()
No-arg constructor.
|
AuthenticationEvent(ClusterNode node,
String msg,
int type)
Creates authentication event with given parameters.
|
AuthenticationEvent(ClusterNode node,
String msg,
int type,
SecuritySubjectType subjType,
UUID subjId,
Object login,
InetSocketAddress addr)
Creates authentication event with given parameters.
|
AuthenticationEvent(ClusterNode node,
String msg,
int type,
SecuritySubjectType subjType,
UUID subjId,
Object login,
InetSocketAddress addr,
List<InetSocketAddress> allAddr)
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. |
InetSocketAddress |
subjectAddress()
Gets subject address of the event.
|
void |
subjectAddress(InetSocketAddress addr)
Sets subject address of the event.
|
List<InetSocketAddress> |
subjectAllAddress()
Gets All the subject addresses of the event.
|
void |
subjectAllAddresses(List<InetSocketAddress> allAddr)
Sets All the subject addresses of the event.
|
UUID |
subjectId()
Gets subject ID that triggered the event.
|
void |
subjectId(UUID subjId)
Sets subject ID that triggered the event.
|
SecuritySubjectType |
subjectType()
Gets subject type that triggered the event.
|
void |
subjectType(SecuritySubjectType subjType)
Sets subject type that triggered the event.
|
String |
toString() |
public AuthenticationEvent()
public AuthenticationEvent(ClusterNode node, String msg, int type)
msg
- Optional message.type
- Event type.public AuthenticationEvent(ClusterNode node, String msg, int type, SecuritySubjectType subjType, UUID subjId, Object login, InetSocketAddress addr)
node
- Node.msg
- Optional message.type
- Event type.subjType
- Subject type.subjId
- Subject ID.addr
- Subject address.public AuthenticationEvent(ClusterNode node, String msg, int type, SecuritySubjectType subjType, UUID subjId, Object login, InetSocketAddress addr, List<InetSocketAddress> allAddr)
node
- Node.msg
- Optional message.type
- Event type.subjType
- Subject type.subjId
- Subject ID.addr
- Subject address.allAddr
- All Subject addresses.public String shortDisplay()
toString()
result. Suitable for humans to read.shortDisplay
in interface Event
shortDisplay
in class EventAdapter
toString()
result.public SecuritySubjectType subjectType()
public UUID subjectId()
public void subjectType(SecuritySubjectType 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 InetSocketAddress subjectAddress()
public void subjectAddress(InetSocketAddress addr)
addr
- Subject address.public List<InetSocketAddress> subjectAllAddress()
public void subjectAllAddresses(List<InetSocketAddress> allAddr)
allAddr
- Subject address.public String toString()
toString
in class EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024