This is an automated email from the ASF dual-hosted git repository. abudnikov pushed a commit to branch IGNITE-7595 in repository https://gitbox.apache.org/repos/asf/ignite.git
commit 5fb97313cb56f0568f3bc9526a7756548d0ece0f Author: abudnikov <[email protected]> AuthorDate: Mon Aug 24 17:21:54 2020 +0300 update cluster-states page --- docs/_docs/cluster-states.adoc | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/docs/_docs/cluster-states.adoc b/docs/_docs/cluster-states.adoc index 7b29021..ca5e38e 100644 --- a/docs/_docs/cluster-states.adoc +++ b/docs/_docs/cluster-states.adoc @@ -21,19 +21,25 @@ include::includes/note-on-deactivation.adoc[] * `ACTIVE`: This is the normal mode of the cluster. You can execute any operation. * `ACTIVE_READ_ONLY`: The read-only mode. Only read operations are allowed. ++ +-- +Any attempt to create a cache or modify the data in an existing cache results in an `IgniteClusterReadOnlyException` exception. +DDL or DML statements that modify the data are prohibited as well. +-- + == Changing Cluster State You can change the cluster state in multiple ways: -* Control script: +* link:control-script#getting-cluster-state[Control script]: + [source, shell] ---- control.sh --set-state ACTIVE_READ_ONLY ---- -* REST command: +* link:restapi#change-cluster-state[REST command]: + -- @@ -42,9 +48,8 @@ control.sh --set-state ACTIVE_READ_ONLY http://localhost:8080/ignite?cmd=setstate&state=ACTIVE_READ_ONLY ---- - -- -* Programmatically +* Programmatically: + [tabs] -- @@ -59,3 +64,20 @@ include::{javaFile}[tags=change-state, indent=0] tab:C#/.NET[] tab:C++[] -- + +* JMX Bean: ++ +-- + +Mbean's Object Name: :: +---- +group="Kernal",name=IgniteKernal +---- +[cols="1,4",opts="header"] +|=== +|Operation | Description + +| `clusterState()` | Get the current cluster state. +| `clusterState(String)` | Set the cluster state. +|=== +--
