Package de.bytestore.hostinger.impl
Klasse JmxControlImpl
java.lang.Object
de.bytestore.hostinger.impl.JmxControlImpl
- Alle implementierten Schnittstellen:
JmxControl
Implementation of the
JmxControl
interface for managing JMX functionality.
This class provides operations to fetch metadata and information for JMX-Managed Beans
and perform related tasks.-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungprotected static class
Sorts attributes alphabetically by nameprotected static class
Sorts domains alphabetically by nameprotected static class
Sorts mbeans alphabetically by nameprotected static class
Sorts operations alphabetically by name -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected org.springframework.context.ApplicationContext
protected static final String
Constant identifier for the role field in a JMXDescriptor
.protected io.jmix.core.Metadata
protected static final String
Constant identifier for the getter role field value in a JMXDescriptor
.protected static final String
Constant identifier for the setter role field value in a JMXDescriptor
. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJmxControlImpl
(org.springframework.context.ApplicationContext applicationContext, io.jmix.core.Metadata metadata) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String
protected ManagedBeanAttribute
createAttribute
(MBeanServerConnection connection, ObjectName name, MBeanAttributeInfo attribute, ManagedBeanInfo mbinfo) protected ManagedBeanDomain
protected ManagedBeanInfo
createManagedBeanInfo
(ObjectName name, MBeanInfo info) protected ManagedBeanOperation
createOperation
(ManagedBeanInfo mbean, MBeanOperationInfo operation) protected ManagedBeanOperationParameter
createOperationParameter
(ManagedBeanOperation o, int index, MBeanParameterInfo pinfo) protected boolean
equalAttributes
(List<ManagedBeanOperationParameter> args, String[] argTypes) Loads list of managed bean domains.getManagedBean
(String beanObjectName) Loads the managed bean by its ObjectName.Loads the list of managed bean infos.getOperation
(ManagedBeanInfo bean, String operationName, String[] argTypes) Searches for the bean operation by its name and argument types.invokeOperation
(ManagedBeanOperation operation, Object[] parameterValues) Invokes method of managed bean.protected boolean
isGetterOrSetter
(MBeanOperationInfo operation) loadAttribute
(ManagedBeanInfo mbinfo, String attributeName) Loads attribute by its name.void
loadAttributes
(ManagedBeanInfo mbinfo) Loads attributes for managed bean descriptor.void
loadAttributeValue
(ManagedBeanAttribute attribute) Loads attribute value for managed bean attribute.protected void
loadOperations
(ManagedBeanInfo mbean, MBeanInfo info) void
saveAttributeValue
(ManagedBeanAttribute attribute) Saves attribute value to JMX node.protected void
setSerializableValue
(ManagedBeanAttribute mba, Object value) protected static <T> T
withConnection
(Function<MBeanServerConnection, T> action)
-
Felddetails
-
FIELD_ROLE
Constant identifier for the role field in a JMXDescriptor
.- Siehe auch:
-
ROLE_GETTER
Constant identifier for the getter role field value in a JMXDescriptor
.- Siehe auch:
-
ROLE_SETTER
Constant identifier for the setter role field value in a JMXDescriptor
.- Siehe auch:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
metadata
protected io.jmix.core.Metadata metadata
-
-
Konstruktordetails
-
JmxControlImpl
public JmxControlImpl(org.springframework.context.ApplicationContext applicationContext, io.jmix.core.Metadata metadata)
-
-
Methodendetails
-
getManagedBeans
Beschreibung aus Schnittstelle kopiert:JmxControl
Loads the list of managed bean infos.- Angegeben von:
getManagedBeans
in SchnittstelleJmxControl
- Gibt zurück:
- the list with managed beans
-
getManagedBean
Beschreibung aus Schnittstelle kopiert:JmxControl
Loads the managed bean by its ObjectName.- Angegeben von:
getManagedBean
in SchnittstelleJmxControl
- Parameter:
beanObjectName
- exact ObjectName of the bean- Gibt zurück:
- found managed bean, null if no bean found
-
createManagedBeanInfo
-
loadAttributes
Beschreibung aus Schnittstelle kopiert:JmxControl
Loads attributes for managed bean descriptor.- Angegeben von:
loadAttributes
in SchnittstelleJmxControl
- Parameter:
mbinfo
- managed bean descriptor
-
loadAttribute
Beschreibung aus Schnittstelle kopiert:JmxControl
Loads attribute by its name. Note that the reference from ManagedBeanInfo to loaded ManagedBeanAttribute is not set.- Angegeben von:
loadAttribute
in SchnittstelleJmxControl
- Parameter:
mbinfo
- managed bean descriptor- Gibt zurück:
- loaded attribute, null if no attribute found.
-
createAttribute
protected ManagedBeanAttribute createAttribute(MBeanServerConnection connection, ObjectName name, MBeanAttributeInfo attribute, ManagedBeanInfo mbinfo) -
loadAttributeValue
Beschreibung aus Schnittstelle kopiert:JmxControl
Loads attribute value for managed bean attribute.- Angegeben von:
loadAttributeValue
in SchnittstelleJmxControl
- Parameter:
attribute
- attribute descriptor
-
getOperation
public ManagedBeanOperation getOperation(ManagedBeanInfo bean, String operationName, @Nullable String[] argTypes) Beschreibung aus Schnittstelle kopiert:JmxControl
Searches for the bean operation by its name and argument types.- Angegeben von:
getOperation
in SchnittstelleJmxControl
- Parameter:
bean
- managed bean descriptoroperationName
- operation exact nameargTypes
- operation argument types- Gibt zurück:
- Found operation descriptor, null if not found
-
saveAttributeValue
Beschreibung aus Schnittstelle kopiert:JmxControl
Saves attribute value to JMX node.- Angegeben von:
saveAttributeValue
in SchnittstelleJmxControl
- Parameter:
attribute
- attribute descriptor
-
invokeOperation
Beschreibung aus Schnittstelle kopiert:JmxControl
Invokes method of managed bean.- Angegeben von:
invokeOperation
in SchnittstelleJmxControl
- Parameter:
operation
- operation descriptorparameterValues
- array with parameter values- Gibt zurück:
- invocation result
-
getDomains
Beschreibung aus Schnittstelle kopiert:JmxControl
Loads list of managed bean domains.- Angegeben von:
getDomains
in SchnittstelleJmxControl
- Gibt zurück:
- the list of managed bean domains
-
equalAttributes
-
loadOperations
-
isGetterOrSetter
-
createOperationParameter
protected ManagedBeanOperationParameter createOperationParameter(ManagedBeanOperation o, int index, MBeanParameterInfo pinfo) -
createOperation
-
createDomain
-
cleanType
-
setSerializableValue
-
withConnection
-