public class IgniteMXBeanImpl extends Object implements IgniteMXBean
IgniteMXBean.ACTIVE_DESC, CHECKPOINT_SPI_FORMATTED_DESC, CLUSTER_STATE_DESC, COLLISION_SPI_FORMATTED_DESC, COMMUNICATION_SPI_FORMATTED_DESC, COPYRIGHT_DESC, CUR_COORDINATOR_FORMATTED_DESC, DEPLOYMENT_SPI_FORMATTED_DESC, DISCOVERY_SPI_FORMATTED_DESC, EVT_STORAGE_SPI_FORMATTED_DESC, EXECUTOR_SRVC_FORMATTED_DESC, FAILOVER_SPI_FORMATTED_DESC, FULL_VER_DESC, GRID_LOG_FORMATTED_DESC, IGNITE_HOME_DESC, INSTANCE_NAME_DESC, IS_NODE_BASELINE_DESC, IS_PEER_CLS_LOADING_ENABLED_DESC, IS_REBALANCE_ENABLED_DESC, JDK_INFO_DESC, LAST_CLUSTER_STATE_CHANGE_TIME_DESC, LIFECYCLE_BEANS_FORMATTED_DESC, LOAD_BALANCING_SPI_FORMATTED_DESC, LOC_NODE_ID_DESC, LONG_JVM_PAUSE_LAST_EVENTS_DESC, LONG_JVM_PAUSES_CNT_DESC, LONG_JVM_PAUSES_TOTAL_DURATION_DESC, MBEAN_SERVER_FORMATTED_DESC, OS_INFO_DESC, OS_USER_DESC, READ_ONLY_MODE_DESC, READ_ONLY_MODE_DURATION_DESC, START_TIMESTAMP_DESC, START_TIMESTAMP_FORMATTED_DESC, UPTIME_DESC, UPTIME_FORMATTED_DESC, USER_ATTRS_FORMATTED_DESC, VM_NAME_DESC| Constructor and Description |
|---|
IgniteMXBeanImpl(IgniteKernal kernal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
active()
Checks if Ignite grid is active.
|
void |
active(boolean active)
Changes Ignite grid state to active or inactive.
|
void |
clearNodeLocalMap()
Clears node local map.
|
String |
clusterState()
Checks cluster state.
|
void |
clusterState(String state)
Changes current cluster state.
|
void |
clusterState(String state,
boolean forceDeactivation)
Changes current cluster state.
|
void |
dumpDebugInfo()
Dumps debug information for the current node.
|
String |
executeTask(String taskName,
String arg)
A shortcut method that executes given task assuming single
java.lang.String argument
and java.lang.String return type. |
String |
getCheckpointSpiFormatted()
Gets a formatted instance of configured checkpoint SPI implementation.
|
String |
getCollisionSpiFormatted()
Gets a formatted instance of configured collision SPI implementations.
|
String |
getCommunicationSpiFormatted()
Gets a formatted instance of fully configured SPI communication implementation.
|
String |
getCopyright()
Gets copyright statement for Ignite product.
|
String |
getCurrentCoordinatorFormatted()
Gets a formatted properties of current coordinator.
|
String |
getDeploymentSpiFormatted()
Gets a formatted instance of fully configured deployment SPI implementation.
|
String |
getDiscoverySpiFormatted()
Gets a formatted instance of configured discovery SPI implementation.
|
String |
getEventStorageSpiFormatted()
Gets a formatted instance of fully configured event SPI implementation.
|
String |
getExecutorServiceFormatted()
Gets a formatted instance of fully configured thread pool that is used in grid.
|
String |
getFailoverSpiFormatted()
Gets a formatted instance of fully configured failover SPI implementations.
|
String |
getFullVersion()
Gets string presentation of the version.
|
String |
getGridLoggerFormatted()
Gets a formatted instance of logger that is in grid.
|
String |
getIgniteHome()
Gets Ignite installation home folder.
|
String |
getInstanceName()
Gets optional kernal instance name.
|
String |
getJdkInformation()
Gets JDK information.
|
List<String> |
getLifecycleBeansFormatted()
Gets
toString() representation of of lifecycle beans configured
with Ignite. |
String |
getLoadBalancingSpiFormatted()
Gets a formatted instance of fully configured load balancing SPI implementations.
|
UUID |
getLocalNodeId()
Unique identifier for this node within grid.
|
Map<Long,Long> |
getLongJVMPauseLastEvents()
Gets long JVM pause last events.
|
long |
getLongJVMPausesCount()
Gets long JVM pauses count.
|
long |
getLongJVMPausesTotalDuration()
Gets long JVM pauses total duration.
|
String |
getMBeanServerFormatted()
Gets a formatted instance of MBean server instance.
|
String |
getOsInformation()
Gets OS information.
|
String |
getOsUser()
Gets OS user.
|
long |
getStartTimestamp()
Get start timestamp of the kernal.
|
String |
getStartTimestampFormatted()
Gets string presentation of the kernal start timestamp.
|
long |
getUpTime()
Gets up-time of the kernal.
|
String |
getUpTimeFormatted()
Gets string presentation of up-time for the kernal.
|
List<String> |
getUserAttributesFormatted()
Gets a list of formatted user-defined attributes added to this node.
|
String |
getVmName()
Gets VM name.
|
boolean |
isNodeInBaseline()
Gets a flag whether local node is in baseline.
|
boolean |
isPeerClassLoadingEnabled()
Returns
true if peer class loading is enabled, false
otherwise. |
boolean |
isRebalanceEnabled()
Gets rebalance enabled flag.
|
long |
lastClusterStateChangeTime()
Gets last cluster state change operation.
|
boolean |
pingNode(String nodeId)
Pings node with given node ID to see whether it is alive.
|
boolean |
pingNodeByAddress(String host)
Pings node with given host name to see if it is alive.
|
void |
printLastErrors()
Prints errors.
|
void |
rebalanceEnabled(boolean rebalanceEnabled)
Enable or disable cache partition rebalance per node.
|
boolean |
removeCheckpoint(String key)
This method allows manually remove the checkpoint with given
key. |
void |
runIoTest(long warmup,
long duration,
int threads,
long maxLatency,
int rangesCnt,
int payLoadSize,
boolean procFromNioThread)
Runs IO latency test against all remote server nodes in cluster.
|
void |
undeployTaskFromGrid(String taskName)
Makes the best attempt to undeploy a task from the whole grid.
|
public IgniteMXBeanImpl(IgniteKernal kernal)
kernal - Ignite kernel to work with.public boolean active()
False.active in interface IgniteMXBeanTrue if grid is active. False If grid is not active.public void active(boolean active)
throws JMException
NOTE: Deactivation clears in-memory caches (without persistence) including the system caches.
active in interface IgniteMXBeanactive - Activate/DeActivate flag.JMException - if deactivation is forbidden or stopped.public String getCopyright()
getCopyright in interface IgniteMXBeanpublic long getStartTimestamp()
getStartTimestamp in interface IgniteMXBeanpublic String getStartTimestampFormatted()
getStartTimestampFormatted in interface IgniteMXBeanpublic long getUpTime()
getUpTime in interface IgniteMXBeanpublic long getLongJVMPausesCount()
getLongJVMPausesCount in interface IgniteMXBeanpublic long getLongJVMPausesTotalDuration()
getLongJVMPausesTotalDuration in interface IgniteMXBeanpublic Map<Long,Long> getLongJVMPauseLastEvents()
getLongJVMPauseLastEvents in interface IgniteMXBeanpublic String getUpTimeFormatted()
getUpTimeFormatted in interface IgniteMXBeanpublic String getFullVersion()
getFullVersion in interface IgniteMXBeanpublic String getCheckpointSpiFormatted()
getCheckpointSpiFormatted in interface IgniteMXBeanpublic String getCurrentCoordinatorFormatted()
getCurrentCoordinatorFormatted in interface IgniteMXBeanpublic boolean isNodeInBaseline()
isNodeInBaseline in interface IgniteMXBeanpublic String getCommunicationSpiFormatted()
getCommunicationSpiFormatted in interface IgniteMXBeanpublic String getDeploymentSpiFormatted()
getDeploymentSpiFormatted in interface IgniteMXBeanpublic String getDiscoverySpiFormatted()
getDiscoverySpiFormatted in interface IgniteMXBeanpublic String getEventStorageSpiFormatted()
getEventStorageSpiFormatted in interface IgniteMXBeanpublic String getCollisionSpiFormatted()
getCollisionSpiFormatted in interface IgniteMXBeanpublic String getFailoverSpiFormatted()
getFailoverSpiFormatted in interface IgniteMXBeanpublic String getLoadBalancingSpiFormatted()
getLoadBalancingSpiFormatted in interface IgniteMXBeanpublic String getOsInformation()
getOsInformation in interface IgniteMXBeanpublic String getJdkInformation()
getJdkInformation in interface IgniteMXBeanpublic String getOsUser()
getOsUser in interface IgniteMXBeanpublic void printLastErrors()
printLastErrors in interface IgniteMXBeanpublic String getVmName()
getVmName in interface IgniteMXBeanpublic String getInstanceName()
null.getInstanceName in interface IgniteMXBeanpublic String getExecutorServiceFormatted()
getExecutorServiceFormatted in interface IgniteMXBeanpublic String getIgniteHome()
getIgniteHome in interface IgniteMXBeanpublic String getGridLoggerFormatted()
getGridLoggerFormatted in interface IgniteMXBeanpublic String getMBeanServerFormatted()
getMBeanServerFormatted in interface IgniteMXBeanpublic UUID getLocalNodeId()
getLocalNodeId in interface IgniteMXBeanpublic List<String> getUserAttributesFormatted()
Note that grid will add all System properties and environment properties to grid node attributes also. SPIs may also add node attributes that are used for SPI implementation.
getUserAttributesFormatted in interface IgniteMXBeanpublic boolean isPeerClassLoadingEnabled()
true if peer class loading is enabled, false
otherwise. Default value is true.
When peer class loading is enabled and task is not deployed on local node, local node will try to load classes from the node that initiated task execution. This way, a task can be physically deployed only on one node and then internally penetrate to all other nodes.
isPeerClassLoadingEnabled in interface IgniteMXBeantrue if peer class loading is enabled, false
otherwise.public List<String> getLifecycleBeansFormatted()
toString() representation of of lifecycle beans configured
with Ignite.getLifecycleBeansFormatted in interface IgniteMXBeantoString() representation of all lifecycle beans configured
with Ignite.public String clusterState()
clusterState in interface IgniteMXBeanClusterState.public long lastClusterStateChangeTime()
lastClusterStateChangeTime in interface IgniteMXBeanpublic boolean removeCheckpoint(String key)
key.removeCheckpoint in interface IgniteMXBeankey - Checkpoint key.true if specified checkpoint was indeed removed, false
otherwise.public boolean pingNode(String nodeId)
pingNode in interface IgniteMXBeannodeId - String presentation of node ID. See UUID.fromString(String) for
details on string formatting.public void undeployTaskFromGrid(String taskName) throws JMException
Note that Ignite maintains internal versions for grid tasks in case of redeployment. This method will attempt to undeploy all versions on the grid task with given name.
undeployTaskFromGrid in interface IgniteMXBeantaskName - Name of the task to undeploy. If task class has ComputeTaskName annotation,
then task was deployed under a name specified within annotation. Otherwise, full
class name should be used as task's name.JMException - Thrown if undeploy failed.public String executeTask(String taskName, String arg) throws JMException
java.lang.String argument
and java.lang.String return type.executeTask in interface IgniteMXBeantaskName - Name of the task to execute.arg - Single task execution argument (can be null).java.lang.String type).JMException - Thrown in case when execution failed.public boolean pingNodeByAddress(String host) throws JMException
pingNodeByAddress in interface IgniteMXBeanhost - Host name or IP address of the node to ping.JMException - When ping failed.public void dumpDebugInfo()
dumpDebugInfo in interface IgniteMXBeanpublic void runIoTest(long warmup,
long duration,
int threads,
long maxLatency,
int rangesCnt,
int payLoadSize,
boolean procFromNioThread)
runIoTest in interface IgniteMXBeanwarmup - Warmup duration in milliseconds.duration - Test duration in milliseconds.threads - Thread count.maxLatency - Max latency in nanoseconds.rangesCnt - Ranges count in resulting histogram.payLoadSize - Payload size in bytes.procFromNioThread - True to process requests in NIO threads.public void clearNodeLocalMap()
clearNodeLocalMap in interface IgniteMXBeanpublic void clusterState(String state) throws JMException
NOTE: Deactivation clears in-memory caches (without persistence) including the system caches.
clusterState in interface IgniteMXBeanstate - String representation of new cluster state.JMException - if deactivation is forbidden or stopped.public void clusterState(String state, boolean forceDeactivation) throws JMException
NOTE: Deactivation clears in-memory caches (without persistence) including the system caches.
clusterState in interface IgniteMXBeanstate - String representation of new cluster state.forceDeactivation - If true, cluster deactivation will be forced.JMException - if deactivation is forbidden or stopped.public boolean isRebalanceEnabled()
isRebalanceEnabled in interface IgniteMXBeanpublic void rebalanceEnabled(boolean rebalanceEnabled)
rebalanceEnabled in interface IgniteMXBeanrebalanceEnabled - If true then set rebalance to enabled state.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023