public interface AdminChannel
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_CONTEXT |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addNodeToReplicationGroup(JoinReplicationGroup request)
Request to add a node to a replication group.
|
CompletableFuture<ApplicationRoles> |
authenticateToken(String token)
Authenticate an application token against the information available in Axon Server.
|
CompletableFuture<UserRoles> |
authenticateUser(String username,
String password)
Authenticate a user against the information available in Axon Server.
|
CompletableFuture<Void> |
createContext(CreateContextRequest request)
Request to create an Axon Server context.
|
CompletableFuture<Token> |
createOrUpdateApplication(ApplicationRequest request)
Request to create an Axon Server application, or update it if it's already present.
|
CompletableFuture<Void> |
createOrUpdateUser(CreateOrUpdateUserRequest request)
Request to create an Axon Server user, or update it if it's already present.
|
CompletableFuture<Void> |
createReplicationGroup(CreateReplicationGroupRequest request)
Request to create a replication group.
|
CompletableFuture<Void> |
deleteApplication(String applicationName)
Request to delete application in Axon Server.
|
CompletableFuture<Void> |
deleteContext(DeleteContextRequest request)
Request to delete a context in Axon Server.
|
CompletableFuture<Void> |
deleteReplicationGroup(DeleteReplicationGroupRequest request)
Request to delete a replication group in Axon Server.
|
CompletableFuture<Void> |
deleteUser(String username)
Request to delete a user in Axon Server.
|
ResultStream<EventProcessor> |
eventProcessors()
Returns all the event processor registered to AxonServer.
|
ResultStream<EventProcessor> |
eventProcessorsByComponent(String component)
Returns all the event processor registered by the specified application.
|
CompletableFuture<List<ApplicationOverview>> |
getAllApplications()
Request to list all applications in Axon Server.
|
CompletableFuture<ConnectedApplicationOverview> |
getAllConnectedApplications(String contextName)
Request to list all connected applications in Axon Server.
|
CompletableFuture<List<ContextOverview>> |
getAllContexts()
Request to list all contexts in Axon Server.
|
CompletableFuture<List<NodeOverview>> |
getAllNodes()
Request to list all nodes in Axon Server.
|
CompletableFuture<List<ReplicationGroupOverview>> |
getAllReplicationGroups()
Request to list all replication groups in Axon Server.
|
CompletableFuture<List<UserOverview>> |
getAllUsers()
Request to list all users in Axon Server.
|
CompletableFuture<ApplicationOverview> |
getApplication(String applicationName)
Request to retrieve application overview in Axon Server.
|
CompletableFuture<List<LoadBalancingStrategy>> |
getBalancingStrategies()
Returns all available load balance strategies registered to AxonServer.
|
CompletableFuture<ContextOverview> |
getContextOverview(String context)
Request to retrieve a
ContextOverview from Axon Server. |
CompletableFuture<ReplicationGroupOverview> |
getReplicationGroup(String replicationGroup)
Request to retrieve replication group overview in Axon Server.
|
CompletableFuture<Void> |
loadBalanceEventProcessor(String eventProcessorName,
String tokenStoreIdentifier,
String strategy)
Request to balance the load for the given
eventProcessorName within the connected client. |
default CompletableFuture<Result> |
mergeEventProcessor(String eventProcessorName,
String tokenStoreIdentifier)
Request to merge the two smallest segments of a specific event processor.
|
CompletableFuture<Result> |
mergeEventProcessor(String eventProcessorName,
String tokenStoreIdentifier,
String contextName)
Request to merge the two smallest segments of a specific event processor in a specific context.
|
CompletableFuture<Result> |
moveEventProcessorSegment(String eventProcessorName,
String tokenStoreIdentifier,
int segmentId,
String targetClientIdentifier)
Requests to move a specific event processor segment to a certain client.
|
default CompletableFuture<Result> |
pauseEventProcessor(String eventProcessorName,
String tokenStoreIdentifier)
Request to pause a specific event processor.
|
CompletableFuture<Result> |
pauseEventProcessor(String eventProcessorName,
String tokenStoreIdentifier,
String contextName)
Request to pause a specific event processor in a specific context.
|
CompletableFuture<Token> |
refreshToken(String applicationName)
Request to refresh token of application in Axon Server.
|
CompletableFuture<Void> |
removeNodeFromReplicationGroup(LeaveReplicationGroup request)
Request to remove a node from a replication group.
|
CompletableFuture<Void> |
setAutoLoadBalanceStrategy(String eventProcessorName,
String tokenStoreIdentifier,
String strategy)
Updates the autoloadbalance strategy for a
eventProcessorName within the connected client. |
default CompletableFuture<Result> |
splitEventProcessor(String eventProcessorName,
String tokenStoreIdentifier)
Request to split the biggest segment of a specific event processor.
|
CompletableFuture<Result> |
splitEventProcessor(String eventProcessorName,
String tokenStoreIdentifier,
String contextName)
Request to split the biggest segment of a specific event processor in a specific context.
|
default CompletableFuture<Result> |
startEventProcessor(String eventProcessorName,
String tokenStoreIdentifier)
Request to start a specific event processor.
|
CompletableFuture<Result> |
startEventProcessor(String eventProcessorName,
String tokenStoreIdentifier,
String contextName)
Request to start a specific event processor in a specific context.
|
ResultStream<ContextUpdate> |
subscribeToContextUpdates()
Subscribes and listens to context updates from Axon Server, like when a context is created or deleted.
|
CompletableFuture<Void> |
updateContextProperties(UpdateContextPropertiesRequest request)
Request to update the properties for an Axon Server context.
|
static final String CHANNEL_CONTEXT
ResultStream<EventProcessor> eventProcessors()
ResultStream<EventProcessor> eventProcessorsByComponent(String component)
component - the component namedefault CompletableFuture<Result> pauseEventProcessor(String eventProcessorName, String tokenStoreIdentifier)
CompletableFuture that completes when the pause
has been performed. The CompletableFuture completes with Result ACCEPTED, if the client
application running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to pausetokenStoreIdentifier - the token store identifier of the processor to pauseCompletableFuture that completes when the pause has been performedCompletableFuture<Result> pauseEventProcessor(String eventProcessorName, String tokenStoreIdentifier, String contextName)
CompletableFuture that completes when the pause has been performed.
The CompletableFuture completes with Result ACCEPTED, if the client
application running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to pausetokenStoreIdentifier - the token store identifier of the processor to pausecontextName - the name of the context where the event processor isCompletableFuture that completes when the pause has been performeddefault CompletableFuture<Result> startEventProcessor(String eventProcessorName, String tokenStoreIdentifier)
CompletableFuture that completes when the start
has been performed
The CompletableFuture completes with Result ACCEPTED, if the client application
running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to starttokenStoreIdentifier - the token store identifier of the processor to startCompletableFuture that completes when the start has been performedCompletableFuture<Result> startEventProcessor(String eventProcessorName, String tokenStoreIdentifier, String contextName)
CompletableFuture that completes when the start has been performed
The CompletableFuture completes with Result ACCEPTED, if the client application
running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to starttokenStoreIdentifier - the token store identifier of the processor to startcontextName - the name of the context where the event processor isCompletableFuture that completes when the start has been performeddefault CompletableFuture<Result> splitEventProcessor(String eventProcessorName, String tokenStoreIdentifier)
CompletableFuture that
completes when the split has been performed
The CompletableFuture completes with Result ACCEPTED, if the client application
running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to splittokenStoreIdentifier - the token store identifier of the processor to splitCompletableFuture that completes when the split has been performedCompletableFuture<Result> splitEventProcessor(String eventProcessorName, String tokenStoreIdentifier, String contextName)
CompletableFuture that completes when the split has been performed
The CompletableFuture completes with Result ACCEPTED, if the client application
running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to splittokenStoreIdentifier - the token store identifier of the processor to splitcontextName - the name of the context where the event processor isCompletableFuture that completes when the split has been performeddefault CompletableFuture<Result> mergeEventProcessor(String eventProcessorName, String tokenStoreIdentifier)
CompletableFuture
that completes when the merge has been performed
The CompletableFuture completes with Result ACCEPTED, if the client application
running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to mergetokenStoreIdentifier - the token store identifier of the processor to mergeCompletableFuture that completes when the merge has been performedCompletableFuture<Result> mergeEventProcessor(String eventProcessorName, String tokenStoreIdentifier, String contextName)
CompletableFuture that completes when the merge has been performed
The CompletableFuture completes with Result ACCEPTED, if the client application
running the event processor is using a version of the connector prior to 4.6.0.eventProcessorName - the name of the event processor to mergetokenStoreIdentifier - the token store identifier of the processor to mergecontextName - the name of the context where the event processor isCompletableFuture that completes when the merge has been performedCompletableFuture<Void> loadBalanceEventProcessor(String eventProcessorName, String tokenStoreIdentifier, String strategy)
eventProcessorName within the connected client.
Returns a CompletableFuture that completes when the request has been received by Axon Server.
Note that this doesn't imply that the processor is balanced, but only that the request has been properly
delivered.eventProcessorName - the name of the event processor to balance the load fortokenStoreIdentifier - the token store identifier of the processor to balance the load forstrategy - the balancing strategy to useCompletableFuture that completes when the request is delivered to Axon ServerCompletableFuture<Void> setAutoLoadBalanceStrategy(String eventProcessorName, String tokenStoreIdentifier, String strategy)
eventProcessorName within the connected client.
Returns a CompletableFuture that completes when the request has been received by Axon Server.
Note that this doesn't imply that the processor is balanced, but only that the request has been properly
delivered.eventProcessorName - the name of the event processor to balance the load fortokenStoreIdentifier - the token store identifier of the processor to balance the load forstrategy - the balancing strategy to useCompletableFuture that completes when the request is delivered to Axon ServerCompletableFuture<List<LoadBalancingStrategy>> getBalancingStrategies()
CompletableFuture<Result> moveEventProcessorSegment(String eventProcessorName, String tokenStoreIdentifier, int segmentId, String targetClientIdentifier)
CompletableFuture that
completes when all clients other than the targetClientIdentifier release or disregard the segment for claiming. There is no guarantee that the target client has
already claimed the segment when the result completes.eventProcessorName - the name of the event processor to movetokenStoreIdentifier - the token store identifier of the processor to movesegmentId - the identifier of the segment to movetargetClientIdentifier - the desired destination for the segmentCompletableFuture that completes when all the other clients released the segment or disregard the segment for claiming.
There is no guarantee that the target client has already claimed the segment when the result completes.CompletableFuture<Void> createOrUpdateUser(CreateOrUpdateUserRequest request)
CompletableFuture
that completes when the request has been processed by AxonServer.request - CreateOrUpdateUserRequest to create the user, containing the username, password and user
rolesCompletableFuture that completes when the request has been processed by Axon ServerCompletableFuture<List<UserOverview>> getAllUsers()
CompletableFuture that contains list of all UserOverview in Axon Server.CompletableFuture<Void> deleteUser(String username)
username - is the username of the user to deleteCompletableFuture that completes when the user has been deletedCompletableFuture<Token> createOrUpdateApplication(ApplicationRequest request)
CompletableFuture that completes when the request has been processed by Axon Server.request - ApplicationRequest to create the applicationCompletableFuture that contains application Token and completes
when the request has been processed by Axon ServerCompletableFuture<ApplicationOverview> getApplication(String applicationName)
applicationName - is the name of the application to retrieveCompletableFuture containing ApplicationOverview with data such as name, roles, etc.CompletableFuture<List<ApplicationOverview>> getAllApplications()
CompletableFuture that contains list of all ApplicationOverview in Axon Server.CompletableFuture<Token> refreshToken(String applicationName)
applicationName - is the name of the application to refresh tokenCompletableFuture containing new TokenCompletableFuture<Void> deleteApplication(String applicationName)
applicationName - is the name of the application to deleteCompletableFuture that completes when application has been deletedCompletableFuture<ConnectedApplicationOverview> getAllConnectedApplications(String contextName)
CompletableFuture that contains ConnectedApplicationOverview in Axon Server.CompletableFuture<Void> createContext(CreateContextRequest request)
CompletableFuture that completes when the request has
been processed by Axon Server.request - CreateContextRequest to create the contextCompletableFuture that completes when the request has been processed by Axon ServerCompletableFuture<Void> updateContextProperties(UpdateContextPropertiesRequest request)
CompletableFuture that completes
when the request has been processed by Axon Server.request - UpdateContextPropertiesRequest to update the context propertiesCompletableFuture that completes when the request has been processed by Axon ServerCompletableFuture<Void> deleteContext(DeleteContextRequest request)
request - DeleteContextRequest to delete the context, containing the context name and option to
preserve event store.CompletableFuture that completes when context has been deletedCompletableFuture<ContextOverview> getContextOverview(String context)
ContextOverview from Axon Server.context - the name of the ContextOverview to retrieveCompletableFuture containing ContextOverview data such as name, roles, etc.CompletableFuture<List<ContextOverview>> getAllContexts()
CompletableFuture that contains a list of all ContextOverview in Axon Server.ResultStream<ContextUpdate> subscribeToContextUpdates()
ResultStream that streams ContextUpdate.CompletableFuture<Void> createReplicationGroup(CreateReplicationGroupRequest request)
CompletableFuture that completes when the request has been processed by Axon Server.request - CreateReplicationGroupRequest to create replication group,
containing the replication group name, the node name, role...CompletableFuture that completes when the request has been processed to AxonServerCompletableFuture<Void> deleteReplicationGroup(DeleteReplicationGroupRequest request)
request - DeleteReplicationGroupRequest to delete the replication group,
containing the replication group name and option to preserve event store.CompletableFuture that completes when the replication group has been deletedCompletableFuture<ReplicationGroupOverview> getReplicationGroup(String replicationGroup)
replicationGroup - is the name of the replication group to retrieveCompletableFuture containing ReplicationGroupOverview data such as members, contexts
roles, etc.CompletableFuture<List<ReplicationGroupOverview>> getAllReplicationGroups()
CompletableFuture that contains list of all ReplicationGroupOverview in Axon Server.CompletableFuture<List<NodeOverview>> getAllNodes()
CompletableFuture that contains list of all NodeOverview in Axon Server.CompletableFuture<Void> addNodeToReplicationGroup(JoinReplicationGroup request)
CompletableFuture that completes when the request has been processed by AxonServer.request - JoinReplicationGroup to add a node to replication group,
containing the replication group name, the node name, role...CompletableFuture that completes when the request has been processed to AxonServerCompletableFuture<Void> removeNodeFromReplicationGroup(LeaveReplicationGroup request)
CompletableFuture that completes when the
request has been processed by Axon Server.request - LeaveReplicationGroup to a node to be removed from replication groupCompletableFuture that completes when the request has been processed by Axon ServerCompletableFuture<UserRoles> authenticateUser(String username, String password)
UserRoles object
containing the roles for the user. Completes with an exception if the username/password combination is invalid.
Requires Axon Server 2023.0 or higher.username - the login name of the userpassword - the password of the userCompletableFuture<ApplicationRoles> authenticateToken(String token)
ApplicationRoles object containing the roles for the application. Completes with an exception if the
token is invalid. Requires Axon Server 2023.0 or higher.token - the application tokenCopyright © 2020–2023 AxonIQ BV. All rights reserved.