/** * Enable or disable cache partition rebalance per node. * * @param rebalanceEnabled If {@code true} then set rebalance to enabled state. */ @MXBeanParametersDescriptions( { "Enable cache partitions rebalance on node.", "Disable cache partitions rebalance on node." } ) public void rebalanceEnabled(boolean rebalanceEnabled);
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int seq) { String str = super.getDescription(op, param, seq); try { Method m = getMethod(op); MXBeanParametersDescriptions decsAnn = m.getAnnotation(MXBeanParametersDescriptions.class); if (decsAnn != null) { assert decsAnn.value() != null; assert seq < decsAnn.value().length; str = decsAnn.value()[seq]; assert str != null; assert !str.trim().isEmpty(); // Enforce proper English. assert Character.isUpperCase(str.charAt(0)) == true : str; assert str.charAt(str.length() - 1) == '.' : str; } } catch (SecurityException | ClassNotFoundException ignored) { // No-op. Default value will be returned. } return str; }
/** * Gets number of physical page reads for given cache group. * * @param cacheGrpName Name of cache group. * @return Number of physical page reads for given cache group. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of physical page reads for given cache group." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames("cacheGrpName") @MXBeanParametersDescriptions("Cache group name.") public Long getCacheGroupPhysicalReads(String cacheGrpName);
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int seq) { String str = super.getDescription(op, param, seq); try { Method m = getMethod(op); MXBeanParametersDescriptions decsAnn = m.getAnnotation(MXBeanParametersDescriptions.class); if (decsAnn != null) { assert decsAnn.value() != null; assert seq < decsAnn.value().length; str = decsAnn.value()[seq]; assert str != null; assert !str.trim().isEmpty(); // Enforce proper English. assert Character.isUpperCase(str.charAt(0)) == true : str; assert str.charAt(str.length() - 1) == '.' : str; } } catch (SecurityException | ClassNotFoundException ignored) { // No-op. Default value will be returned. } return str; }
/** * Gets number of logical inner index's page reads for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Number of logical inner index's page reads for given cache group and index. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of logical inner index's page reads for given cache group and index." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public Long getIndexInnerLogicalReads(String cacheGrpName, String idxName);
/** * Sets ZIP compression level to WAL compaction. * {@link DataStorageConfiguration#setWalCompactionLevel(int)} configuration property. * * @param walCompactionLevel ZIP compression level. */ @MXBeanDescription("Sets ZIP compression level to WAL compaction.") @MXBeanParametersNames("walCompactionLevel") @MXBeanParametersDescriptions("ZIP compression level.") void setWalCompactionLevel(int walCompactionLevel); }
/** * Gets string presentation of cache group IO statistics for given cache group. * * @param cacheGrpName Name of cache group. * @return Formatted representation of cache group IO statistics. */ @MXBeanDescription("String presentation of cache group IO statistics.") @MXBeanParametersNames("cacheGrpName") @MXBeanParametersDescriptions("Cache group name.") public String getCacheGroupStatistics(String cacheGrpName);
/** * Gets number of logical page reads for given cache group. * * @param cacheGrpName Name of cache group. * @return Number of logical page reads for given cache group. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of logical page reads for given cache group. " + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames("cacheGrpName") @MXBeanParametersDescriptions("Cache group name.") public Long getCacheGroupLogicalReads(String cacheGrpName);
/** * Long running near transactions * * @return near transactions. */ @MXBeanDescription("Long running near transactions.") @MXBeanParametersNames("duration") @MXBeanParametersDescriptions("Duration, at least (ms).") @Override public Map<String, String> getLongRunningOwnerTransactions(int duration);
/** * Get distinct attribute values for given nodes projection. * * @param attrName Attribute name. */ @MXBeanDescription("Distinct attribute values for given nodes projection.") @MXBeanParametersNames("attrName") @MXBeanParametersDescriptions("Attribute name.") public Set<String> attributeValues(String attrName);
/** * Gets number of logical index page reads for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Number of logical page reads for given cache group and index. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of logical page reads for given cache group." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public Long getIndexLogicalReads(String cacheGrpName, String idxName);
/** * Gets number of logical leaf index's page reads for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Number of logical leaf index's page reads for given cache group and index. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of logical leaf index's page reads for given cache group and index." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public Long getIndexLeafLogicalReads(String cacheGrpName, String idxName);
/** * Gets number of physical leaf index's page reads for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Number of physical leaf index's page reads for given cache group and index. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of physical leaf index's page reads for given cache group and index." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public Long getIndexLeafPhysicalReads(String cacheGrpName, String idxName);
/** * Gets string presentation of index IO statistics for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Formatted representation of index IO statistics for given cache group and index. */ @MXBeanDescription("String presentation of index IO statistics.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public String getIndexStatistics(String cacheGrpName, String idxName);
/** * Gets number of physical index page reads for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Number of physical page reads for given cache group and index. {@code null} in case such statistics doesn't exists. */ @MXBeanDescription("Number of physical page reads for given cache group." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public Long getIndexPhysicalReads(String cacheGrpName, String idxName);
/** * Gets number of physical inner index's page reads for given cache group and index. * * @param cacheGrpName Name of cache group. * @param idxName Name of index. * @return Number of physical inner index's page reads for given cache group and index. {@code null} in case such * statistics doesn't exists. */ @MXBeanDescription("Number of physical inner index's page reads for given cache group and index." + "Can return null in case such statistics doesn't exists.") @MXBeanParametersNames({"cacheGrpName", "idxName"}) @MXBeanParametersDescriptions({"Cache group name.", "Index name."}) public Long getIndexInnerPhysicalReads(String cacheGrpName, String idxName);
/** * Stops thread by {@code name}, if exists and unique. * * @param name Thread name. * @return {@code True} if thread has been stopped successfully, {@code false} otherwise. */ @MXBeanDescription("Stops thread by unique name.") @MXBeanParametersNames( "name" ) @MXBeanParametersDescriptions( "Name of thread to stop." ) public boolean stopThreadByUniqueName(String name);
/** * Terminates worker. * * @param name Worker name. * @return {@code True} if worker has been terminated successfully, {@code false} otherwise. */ @MXBeanDescription("Terminates worker.") @MXBeanParametersNames( "name" ) @MXBeanParametersDescriptions( "Name of worker to terminate." ) public boolean terminateWorker(String name);
/** * Pings node with given host name to see if it is alive. * * @param host Host name or IP address of the node to ping. * @return Whether or not node is alive. */ @MXBeanDescription("Pings node with given host name to see if it is alive. " + "Returns whether or not node is alive.") @MXBeanParametersNames( "host" ) @MXBeanParametersDescriptions( "Host name or IP address of the node to ping." ) public boolean pingNodeByAddress(String host);
/** * Drops client connection by {@code id}, if exists. * * @param id connection id. * @return {@code True} if connection has been dropped successfully, {@code false} otherwise. */ @MXBeanDescription("Drop client connection by ID.") @MXBeanParametersNames( "id" ) @MXBeanParametersDescriptions( "Client connection ID." ) public boolean dropConnection(long id); }