public class IgniteAuthenticationProcessor extends GridProcessorAdapter implements MetastorageLifecycleListener
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
IgniteAuthenticationProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String login,
String passwd)
Adds new user.
|
AuthorizationContext |
authenticate(String login,
String passwd)
Authenticate user.
|
void |
cacheProcessorStarted()
On cache processor started.
|
void |
collectGridNodeData(DiscoveryDataBag dataBag)
Collects discovery data on nodes already in grid on receiving
TcpDiscoveryNodeAddedMessage. |
@Nullable GridComponent.DiscoveryDataExchangeType |
discoveryDataType()
Gets unique component type to distinguish components providing discovery data.
|
boolean |
enabled() |
void |
onActivate()
Called on node activate.
|
void |
onDisconnected(IgniteFuture reconnectFut)
Client disconnected callback.
|
void |
onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
void |
onKernalStart(boolean active)
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
onLocalJoin()
Local node joined to topology.
|
void |
onReadyForRead(ReadOnlyMetastorage metastorage)
Is called when metastorage is made ready for read-only operations very early on node startup phase.
|
void |
onReadyForReadWrite(ReadWriteMetastorage metastorage)
Fully functional metastore capable of performing reading and writing operations.
|
IgniteInternalFuture<?> |
onReconnected(boolean active)
Client reconnected callback.
|
void |
removeUser(String login) |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
void |
updateUser(String login,
String passwd) |
static void |
validate(String login,
String passwd) |
@Nullable IgniteNodeValidationResult |
validateNode(ClusterNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
assertParameter, collectJoiningNodeData, onJoiningNodeDataReceived, printMemoryStats, toString, validateNodepublic IgniteAuthenticationProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void cacheProcessorStarted()
public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void onKernalStart(boolean active)
throws IgniteCheckedException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapteractive - Cluster active flag (note: should be used carefully since state can
change concurrently).IgniteCheckedException - Thrown in case of any errors.public void onDisconnected(IgniteFuture reconnectFut)
onDisconnected in interface GridComponentonDisconnected in class GridProcessorAdapterreconnectFut - Reconnect future.public IgniteInternalFuture<?> onReconnected(boolean active)
onReconnected in interface GridComponentonReconnected in class GridProcessorAdapteractive - Cluster restarted flag.public AuthorizationContext authenticate(String login, String passwd) throws IgniteCheckedException
login - User's login.passwd - Plain text password.null.IgniteCheckedException - On error.IgniteAccessControlException - On authentication error.public static void validate(String login, String passwd) throws UserManagementException
login - User's login.passwd - Password.UserManagementException - On error.public void addUser(String login, String passwd) throws IgniteCheckedException
login - User's login.passwd - Plain text password.IgniteCheckedException - On error.public void removeUser(String login) throws IgniteCheckedException
login - User name.IgniteCheckedException - On error.public void updateUser(String login, String passwd) throws IgniteCheckedException
login - User name.passwd - User password.IgniteCheckedException - On error.public void onReadyForRead(ReadOnlyMetastorage metastorage) throws IgniteCheckedException
onReadyForRead in interface MetastorageLifecycleListenermetastorage - Read-only meta storage.IgniteCheckedExceptionpublic void onReadyForReadWrite(ReadWriteMetastorage metastorage)
onReadyForReadWrite in interface MetastorageLifecycleListenermetastorage - Fully functional meta storage.@Nullable public @Nullable GridComponent.DiscoveryDataExchangeType discoveryDataType()
GridComponent.collectJoiningNodeData(DiscoveryDataBag)
or GridComponent.collectGridNodeData(DiscoveryDataBag).discoveryDataType in interface GridComponentdiscoveryDataType in class GridProcessorAdapter@Nullable public @Nullable IgniteNodeValidationResult validateNode(ClusterNode node)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapternode - Joining node.null in case of success.public void collectGridNodeData(DiscoveryDataBag dataBag)
TcpDiscoveryNodeAddedMessage.collectGridNodeData in interface GridComponentcollectGridNodeData in class GridProcessorAdapterdataBag - container object to store discovery data in.public void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
onGridDataReceived in interface GridComponentonGridDataReceived in class GridProcessorAdapterdata - DiscoveryDataBag.GridDiscoveryData interface to retrieve discovery data collected on remote nodes
(data common for all nodes in grid and specific for each node).public boolean enabled()
true if authentication is enabled, false if not.public void onLocalJoin()
public void onActivate()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020