Class ManagementInvocationPolicy
java.lang.Object
com.tangosol.net.management.ManagementInvocationPolicy
Central policy for management TCMP invocation requests that can reach a
local
MBeanServer.- Since:
- 26.04
- Author:
- as 2026.05.14
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidReject a management TCMP request.static voidvalidateArguments(Object[] aoParam, String[] asSignature, String sScope) Validate parameters and signature values.static voidvalidateAttributeFilter(Filter<?> filter, String sScope) Validate an attribute filter before it can evaluate MBean metadata.static voidvalidateCollectorFunction(com.tangosol.internal.net.management.MBeanCollectorFunction function, String sScope) Validate an MBeanCollectorFunction before it reaches a server-side query.static voidvalidateGetAttribute(MBeanServer server, ObjectName name, String sAttr, String sScope) Validate an attribute read.static voidvalidateInvoke(MBeanServer server, ObjectName name, String sOperation, Object[] aoParam, String[] asSignature, String sScope) Validate an MBean operation invocation.static ObjectNamevalidateObjectName(String sName, String sDomain, String sScope) Validate a concrete management ObjectName string.static ObjectNamevalidateObjectName(ObjectName name, String sScope) Validate a matched ObjectName before using it as an MBeanServer target.static voidvalidateParsedQuery(MBeanAccessor.QueryBuilder.ParsedQuery query, String sScope) Validate an MBeanAccessor query before it reaches a server-side query.static voidvalidateQueryFilter(Filter filter, String sScope) Validate a direct management query filter.static ObjectNamevalidateQueryPattern(String sPattern, String sDomain, String sScope) Validate a management query pattern.static ObjectNamevalidateQueryPattern(ObjectName name, String sScope) Validate a management query pattern.static voidvalidateQueryResult(Set<?> setNames, String sScope) Validate a set of ObjectNames returned by a query.static voidvalidateReadQueryResult(Set<?> setNames, String sScope) Validate a set of ObjectNames returned by a read-only query.static voidvalidateRemoteFunction(Remote.Function function, Subject subject, String sScope) Validate anMBeanServerProxy.execute(Remote.Function)function.static voidvalidateRemoteModelInvocation(MBeanInfo info, int nOp, String sMethod, Object[] aoParam, String[] asSignature, String sScope) Validate a RemoteModel operation against its exposed MBean descriptor.static voidvalidateRemoteModelInvocation(MBeanInfo info, Class<?> clzModel, int nOp, String sMethod, Object[] aoParam, String[] asSignature, String sScope) Validate a RemoteModel operation against its exposed MBean descriptor.static voidvalidateSafeManagementValue(Object oValue, String sScope, String sGate) Validate a single management value.static voidvalidateSetAttribute(MBeanServer server, ObjectName name, Attribute attr, String sScope) Validate an attribute write.static voidvalidateWrapperInvoke(MBeanServer server, ObjectName name, String sOperation, Object[] aoParam, String[] asSignature) Validate a WrapperJmxModel operation invocation.
-
Method Details
-
validateRemoteFunction
Validate anMBeanServerProxy.execute(Remote.Function)function.- Parameters:
function- the function to validatesubject- the current subject, ornullsScope- the caller scope
-
validateObjectName
Validate a concrete management ObjectName string.- Parameters:
sName- the management namesDomain- the local management domainsScope- the caller scope- Returns:
- the normalized object name
-
validateQueryPattern
Validate a management query pattern.- Parameters:
sPattern- the management query patternsDomain- the local management domainsScope- the caller scope- Returns:
- the normalized query pattern
-
validateQueryPattern
Validate a management query pattern.- Parameters:
name- the management query patternsScope- the caller scope- Returns:
- the normalized query pattern
-
validateObjectName
Validate a matched ObjectName before using it as an MBeanServer target.- Parameters:
name- the matched ObjectNamesScope- the caller scope- Returns:
- the validated ObjectName
-
validateQueryResult
-
validateReadQueryResult
-
validateGetAttribute
public static void validateGetAttribute(MBeanServer server, ObjectName name, String sAttr, String sScope) Validate an attribute read.- Parameters:
server- the MBeanServername- the ObjectNamesAttr- the attribute namesScope- the caller scope
-
validateSetAttribute
public static void validateSetAttribute(MBeanServer server, ObjectName name, Attribute attr, String sScope) Validate an attribute write.- Parameters:
server- the MBeanServername- the ObjectNameattr- the attributesScope- the caller scope
-
validateInvoke
public static void validateInvoke(MBeanServer server, ObjectName name, String sOperation, Object[] aoParam, String[] asSignature, String sScope) Validate an MBean operation invocation.- Parameters:
server- the MBeanServername- the ObjectNamesOperation- the operation nameaoParam- the parametersasSignature- the signaturesScope- the caller scope
-
validateWrapperInvoke
public static void validateWrapperInvoke(MBeanServer server, ObjectName name, String sOperation, Object[] aoParam, String[] asSignature) Validate a WrapperJmxModel operation invocation.- Parameters:
server- the MBeanServername- the ObjectNamesOperation- the operation nameaoParam- the parametersasSignature- the signature
-
validateArguments
-
validateSafeManagementValue
-
validateRemoteModelInvocation
public static void validateRemoteModelInvocation(MBeanInfo info, int nOp, String sMethod, Object[] aoParam, String[] asSignature, String sScope) Validate a RemoteModel operation against its exposed MBean descriptor.- Parameters:
info- the exposed MBean descriptornOp- the RemoteModel operation idsMethod- the reflected method nameaoParam- the invocation parametersasSignature- the invocation signaturesScope- the caller scope
-
validateRemoteModelInvocation
public static void validateRemoteModelInvocation(MBeanInfo info, Class<?> clzModel, int nOp, String sMethod, Object[] aoParam, String[] asSignature, String sScope) Validate a RemoteModel operation against its exposed MBean descriptor.- Parameters:
info- the exposed MBean descriptorclzModel- the reflected local model class, ornullnOp- the RemoteModel operation idsMethod- the reflected method nameaoParam- the invocation parametersasSignature- the invocation signaturesScope- the caller scope
-
validateParsedQuery
Validate an MBeanAccessor query before it reaches a server-side query.- Parameters:
query- the querysScope- the caller scope
-
validateAttributeFilter
-
validateQueryFilter
-
validateCollectorFunction
public static void validateCollectorFunction(com.tangosol.internal.net.management.MBeanCollectorFunction function, String sScope) Validate an MBeanCollectorFunction before it reaches a server-side query.- Parameters:
function- the functionsScope- the caller scope
-
reject
-