Class RestManagement
java.lang.Object
com.tangosol.coherence.management.RestManagement
The entry point into Coherence Management over REST that
can be used by external applications that want to publish
the Coherence Management resources on a different endpoint.
- Author:
- jk 2019.05.30
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA provider of instances ofMBeanServerProxy. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(org.glassfish.jersey.server.ResourceConfig resourceConfig) Initialize theResourceConfigto provide the management over REST endpoints.static voidconfigure(org.glassfish.jersey.server.ResourceConfig resourceConfig, RestManagement.MBeanServerProxyFactory factory) Initialize theResourceConfigto provide the management over REST endpoints.static voidconfigure(org.glassfish.jersey.server.ResourceConfig resourceConfig, Supplier<MBeanServer> factory) Initialize theResourceConfigto provide the management over REST endpoints.static voidconfigure(org.glassfish.jersey.server.ResourceConfig resourceConfig, Supplier<MBeanServer> factory, Supplier<Set<String>> supplierClusters) Initialize theResourceConfigto provide the management over REST endpoints for a multi-cluster environment.
-
Method Details
-
configure
public static void configure(org.glassfish.jersey.server.ResourceConfig resourceConfig) Initialize theResourceConfigto provide the management over REST endpoints.This method will configure standard, single cluster, non-versioned endpoints.
- Parameters:
resourceConfig- theResourceConfigto configure- Throws:
NullPointerException- if the any of the parameters are null
-
configure
public static void configure(org.glassfish.jersey.server.ResourceConfig resourceConfig, RestManagement.MBeanServerProxyFactory factory) Initialize theResourceConfigto provide the management over REST endpoints.This method will configure standard, single cluster, non-versioned endpoints.
- Parameters:
resourceConfig- theResourceConfigto configurefactory- theRestManagement.MBeanServerProxyFactorythat will supply instances ofMBeanServerProxy- Throws:
NullPointerException- if the any of the parameters are null
-
configure
public static void configure(org.glassfish.jersey.server.ResourceConfig resourceConfig, Supplier<MBeanServer> factory) Initialize theResourceConfigto provide the management over REST endpoints.This method will configure standard, single cluster, non-versioned endpoints.
- Parameters:
resourceConfig- theResourceConfigto configurefactory- theSupplierthat will supply instances ofMBeanServer- Throws:
NullPointerException- if the any of the parameters are null
-
configure
public static void configure(org.glassfish.jersey.server.ResourceConfig resourceConfig, Supplier<MBeanServer> factory, Supplier<Set<String>> supplierClusters) Initialize theResourceConfigto provide the management over REST endpoints for a multi-cluster environment.This method will configure the
ResourceConfigto use versioned multi-cluster endpoints.The
supplierClustersparameter is expected to supply the valid cluster names that may be used in the request URLs.- Parameters:
resourceConfig- theResourceConfigto configurefactory- theSupplierthat will supply instances ofMBeanServersupplierClusters- a supplier of available cluster names- Throws:
NullPointerException- if the any of the parameters are null
-