Package org.glassfish.common.util.admin
Class GenericCommandModel
- java.lang.Object
-
- org.glassfish.api.admin.CommandModel
-
- org.glassfish.common.util.admin.GenericCommandModel
-
public class GenericCommandModel extends org.glassfish.api.admin.CommandModel
-
-
Constructor Summary
Constructors Constructor Description GenericCommandModel(Class<?> targetType, boolean useAnnotations, org.glassfish.api.admin.ExecuteOn cluster, org.glassfish.api.I18n i18n, LocalStringManager localStrings, org.jvnet.hk2.config.DomDocument document, String commandName, boolean managedJob, Class<?>... extraTypes)GenericCommandModel constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.glassfish.api.admin.CommandModel.ParamModel model)org.glassfish.api.admin.ExecuteOngetClusteringAttributes()Class<?>getCommandClass()StringgetCommandName()StringgetLocalizedDescription()org.glassfish.api.admin.CommandModel.ParamModelgetModelFor(String paramName)Collection<String>getParametersNames()StringgetUsageText()booleanisManagedJob()
-
-
-
Constructor Detail
-
GenericCommandModel
public GenericCommandModel(Class<?> targetType, boolean useAnnotations, org.glassfish.api.admin.ExecuteOn cluster, org.glassfish.api.I18n i18n, LocalStringManager localStrings, org.jvnet.hk2.config.DomDocument document, String commandName, boolean managedJob, Class<?>... extraTypes)
GenericCommandModel constructor.- Parameters:
targetType- the ConfigBeanProxy class that may have additional @Param annotations for the command,useAnnotations- if true, use the annotations on the targetType class to define the parameterscluster- the @ExecuteOn annotation, if anyi18n- the @I18n annotation, if anylocalStrings- where to find strings for the commanddocument- the DomDocument for the commandcommandName- the name of the commandsupportsProgress-trueonly if command working with ProgressStatusextraTypes- any extra types that might also define parameters for the command
-
-
Method Detail
-
getLocalizedDescription
public String getLocalizedDescription()
- Specified by:
getLocalizedDescriptionin classorg.glassfish.api.admin.CommandModel
-
getUsageText
public String getUsageText()
- Specified by:
getUsageTextin classorg.glassfish.api.admin.CommandModel
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classorg.glassfish.api.admin.CommandModel
-
getModelFor
public org.glassfish.api.admin.CommandModel.ParamModel getModelFor(String paramName)
- Specified by:
getModelForin classorg.glassfish.api.admin.CommandModel
-
getParametersNames
public Collection<String> getParametersNames()
- Specified by:
getParametersNamesin classorg.glassfish.api.admin.CommandModel
-
getCommandClass
public Class<?> getCommandClass()
- Specified by:
getCommandClassin classorg.glassfish.api.admin.CommandModel
-
getClusteringAttributes
public org.glassfish.api.admin.ExecuteOn getClusteringAttributes()
- Specified by:
getClusteringAttributesin classorg.glassfish.api.admin.CommandModel
-
add
public void add(org.glassfish.api.admin.CommandModel.ParamModel model)
- Specified by:
addin classorg.glassfish.api.admin.CommandModel
-
isManagedJob
public boolean isManagedJob()
- Specified by:
isManagedJobin classorg.glassfish.api.admin.CommandModel
-
-