public class GenericCommandModel
extends org.glassfish.api.admin.CommandModel
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.glassfish.api.admin.CommandModel.ParamModel model) |
org.glassfish.api.admin.ExecuteOn |
getClusteringAttributes() |
Class<?> |
getCommandClass() |
String |
getCommandName() |
String |
getLocalizedDescription() |
org.glassfish.api.admin.CommandModel.ParamModel |
getModelFor(String paramName) |
Collection<String> |
getParametersNames() |
String |
getUsageText() |
boolean |
isManagedJob() |
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)
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 - true only if command working
with ProgressStatusextraTypes - any extra types that might also define
parameters for the commandpublic String getLocalizedDescription()
getLocalizedDescription in class org.glassfish.api.admin.CommandModelpublic String getUsageText()
getUsageText in class org.glassfish.api.admin.CommandModelpublic String getCommandName()
getCommandName in class org.glassfish.api.admin.CommandModelpublic org.glassfish.api.admin.CommandModel.ParamModel getModelFor(String paramName)
getModelFor in class org.glassfish.api.admin.CommandModelpublic Collection<String> getParametersNames()
getParametersNames in class org.glassfish.api.admin.CommandModelpublic Class<?> getCommandClass()
getCommandClass in class org.glassfish.api.admin.CommandModelpublic org.glassfish.api.admin.ExecuteOn getClusteringAttributes()
getClusteringAttributes in class org.glassfish.api.admin.CommandModelpublic void add(org.glassfish.api.admin.CommandModel.ParamModel model)
add in class org.glassfish.api.admin.CommandModelpublic boolean isManagedJob()
isManagedJob in class org.glassfish.api.admin.CommandModelCopyright © 2017–2020 Eclipse Foundation. All rights reserved.