Package org.apache.tomcat.util.modeler
Class OperationInfo
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.FeatureInfo
- 
- org.apache.tomcat.util.modeler.OperationInfo
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class OperationInfo extends FeatureInfo Internal configuration information for an Operationdescriptor.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringimpactprotected ParameterInfo[]parametersprotected java.util.concurrent.locks.ReadWriteLockparametersLockprotected java.lang.Stringrole- 
Fields inherited from class org.apache.tomcat.util.modeler.FeatureInfodescription, info, name, type
 
- 
 - 
Constructor SummaryConstructors Constructor Description OperationInfo()Standard zero-arguments constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(ParameterInfo parameter)Add a new parameter to the set of arguments for this operation.java.lang.StringgetImpact()protected javax.management.MBeanParameterInfo[]getMBeanParameterInfo()java.lang.StringgetReturnType()java.lang.StringgetRole()ParameterInfo[]getSignature()voidsetImpact(java.lang.String impact)voidsetReturnType(java.lang.String returnType)voidsetRole(java.lang.String role)- 
Methods inherited from class org.apache.tomcat.util.modeler.FeatureInfogetDescription, getName, getType, setDescription, setName, setType
 
- 
 
- 
- 
- 
Field Detail- 
impactprotected java.lang.String impact 
 - 
roleprotected java.lang.String role 
 - 
parametersLockprotected final java.util.concurrent.locks.ReadWriteLock parametersLock 
 - 
parametersprotected ParameterInfo[] parameters 
 
- 
 - 
Method Detail- 
getImpactpublic java.lang.String getImpact() - Returns:
- the "impact" of this operation, which should be a (case-insensitive) string value "ACTION", "ACTION_INFO", "INFO", or "UNKNOWN".
 
 - 
setImpactpublic void setImpact(java.lang.String impact) 
 - 
getRolepublic java.lang.String getRole() - Returns:
- the role of this operation ("getter", "setter", "operation", or "constructor").
 
 - 
setRolepublic void setRole(java.lang.String role) 
 - 
getReturnTypepublic java.lang.String getReturnType() - Returns:
- the fully qualified Java class name of the return type for this operation.
 
 - 
setReturnTypepublic void setReturnType(java.lang.String returnType) 
 - 
getSignaturepublic ParameterInfo[] getSignature() - Returns:
- the set of parameters for this operation.
 
 - 
addParameterpublic void addParameter(ParameterInfo parameter) Add a new parameter to the set of arguments for this operation.- Parameters:
- parameter- The new parameter descriptor
 
 - 
getMBeanParameterInfoprotected javax.management.MBeanParameterInfo[] getMBeanParameterInfo() 
 
- 
 
-