Interface ServerManagement
- All Known Implementing Classes:
BaseServerManagement
public interface ServerManagement
Provides management operations and metadata for an Infinispan server instance.
- Since:
- 10.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidStops the entire cluster.voidStops the container (cache manager and all associated services).Flushes all security caches across the cluster, including authorization and realm caches.Returns theBackupManagerfor managing cluster backup and restore operations.Returns the server'sDefaultCacheManager.default DefaultCacheManagergetCacheManager(String name) Deprecated, for removal: This API element is subject to removal in a future version.Multiple Cache Managers are not supported in the server.Returns the class loader used by this server instance.Returns all configured data sources, keyed by their JNDI name.getLoginConfiguration(ProtocolServer protocolServer) Returns the login configuration for the given protocol server, including authentication mode, URL, realm, and client ID.Returns all registered protocol servers, keyed by their name.Returns the path to the server's data directory.Generates a diagnostic server report.Returns theServerStateManagerresponsible for managing cluster-wide server state such as ignored caches, connector status, and IP filters.Returns the current status of the server.org.infinispan.tasks.manager.TaskManagerReturns theTaskManagerfor managing server tasks.getUsers()Returns all users grouped by security realm.default booleanReturns whether this server is running in a managed environment, such as a Kubernetes or OpenShift cluster managed by the Infinispan Operator.Generates a JSON overview report of the server, including cluster topology, cache features, encodings, persistence stores, and connected clients.Generates a JSON security overview report of the server, including configured security realms and their authentication mechanisms.voidSerializes the server configuration using the provided writer.voidserverStop(List<String> servers) Stops the specified servers.
-
Field Details
-
MODE
These constants are used as keys in the Map returned bygetLoginConfiguration(ProtocolServer).- See Also:
-
URL
- See Also:
-
REALM
- See Also:
-
CLIENT_ID
- See Also:
-
-
Method Details
-
getStatus
ComponentStatus getStatus()Returns the current status of the server. -
serializeConfiguration
Serializes the server configuration using the provided writer. -
serverStop
-
clusterStop
void clusterStop()Stops the entire cluster. -
containerStop
void containerStop()Stops the container (cache manager and all associated services). -
getCacheManager
Deprecated, for removal: This API element is subject to removal in a future version.Multiple Cache Managers are not supported in the server. UsegetCacheManager()instead. -
getCacheManager
DefaultCacheManager getCacheManager()Returns the server'sDefaultCacheManager. -
getServerStateManager
ServerStateManager getServerStateManager()Returns theServerStateManagerresponsible for managing cluster-wide server state such as ignored caches, connector status, and IP filters. -
getLoginConfiguration
Returns the login configuration for the given protocol server, including authentication mode, URL, realm, and client ID.- Parameters:
protocolServer- the protocol server to retrieve login configuration for.
-
getProtocolServers
Map<String, ProtocolServer> getProtocolServers()Returns all registered protocol servers, keyed by their name. -
getTaskManager
org.infinispan.tasks.manager.TaskManager getTaskManager()Returns theTaskManagerfor managing server tasks. -
getServerReport
CompletionStage<Path> getServerReport()Generates a diagnostic server report.- Returns:
- a
CompletionStagethat completes with the path to the generated report file.
-
getBackupManager
BackupManager getBackupManager()Returns theBackupManagerfor managing cluster backup and restore operations. -
getDataSources
Map<String, DataSource> getDataSources()Returns all configured data sources, keyed by their JNDI name. -
getServerDataPath
Path getServerDataPath()Returns the path to the server's data directory. -
getUsers
-
flushSecurityCaches
CompletionStage<Void> flushSecurityCaches()Flushes all security caches across the cluster, including authorization and realm caches. -
overviewReport
Json overviewReport()Generates a JSON overview report of the server, including cluster topology, cache features, encodings, persistence stores, and connected clients. -
securityOverviewReport
Json securityOverviewReport()Generates a JSON security overview report of the server, including configured security realms and their authentication mechanisms. -
getClassLoader
ClassLoader getClassLoader()Returns the class loader used by this server instance. -
isManaged
default boolean isManaged()Returns whether this server is running in a managed environment, such as a Kubernetes or OpenShift cluster managed by the Infinispan Operator.- Returns:
trueif the server is managed by an operator,falseotherwise.- Since:
- 16.3
-