test_class.declarator: NON_EXPECTED_COMMAND_NAME = "Non expected command name"
test_class.modifier: private static final
test_class.original_string: private static final String NON_EXPECTED_COMMAND_NAME = "Non expected command name";
test_class.type: String
test_class.var_name: NON_EXPECTED_COMMAND_NAME
test_class.declarator: CMD1_NAME = "Cmd1Name"
test_class.modifier: protected static final
test_class.original_string: protected static final String CMD1_NAME = "Cmd1Name";
test_class.type: String
test_class.var_name: CMD1_NAME
test_class.declarator: CMD2_NAME = "Cmd2Name"
test_class.modifier: protected static final
test_class.original_string: protected static final String CMD2_NAME = "Cmd2Name";
test_class.type: String
test_class.var_name: CMD2_NAME
test_class.declarator: CMD1_RESPONSE = "cmd1response"
test_class.modifier: protected static final
test_class.original_string: protected static final String CMD1_RESPONSE = "cmd1response";
test_class.type: String
test_class.var_name: CMD1_RESPONSE
test_class.declarator: CMD2_RESPONSE = "cmd2response"
test_class.modifier: protected static final
test_class.original_string: protected static final String CMD2_RESPONSE = "cmd2response";
test_class.type: String
test_class.var_name: CMD2_RESPONSE
test_class.file: api/src/test/java/org/apache/cloudstack/api/BaseCmdTest.java
test_class.identifier: BaseCmdTest
test_case.body: @Test
      public void testGetActualCommandName(){
          BaseCmd cmd1 = new Cmd1();
          BaseCmd cmd2 = new Cmd2();
  
          assertEquals(NON_EXPECTED_COMMAND_NAME, CMD1_NAME, cmd1.getActualCommandName());
          assertEquals(NON_EXPECTED_COMMAND_NAME, CMD2_NAME, cmd2.getActualCommandName());
      }
test_case.class_method_signature: BaseCmdTest.testGetActualCommandName()
test_case.full_signature: @Test public void testGetActualCommandName()
test_case.identifier: testGetActualCommandName
test_case.invocations: assertEquals getActualCommandName assertEquals getActualCommandName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetActualCommandName()
focal_class.declarator: s_logger = LoggerFactory.getLogger(BaseCmd.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger s_logger = LoggerFactory.getLogger(BaseCmd.class.getName());
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.declarator: RESPONSE_TYPE_XML = HttpUtils.RESPONSE_TYPE_XML
focal_class.modifier: public static final
focal_class.original_string: public static final String RESPONSE_TYPE_XML = HttpUtils.RESPONSE_TYPE_XML;
focal_class.type: String
focal_class.var_name: RESPONSE_TYPE_XML
focal_class.declarator: RESPONSE_TYPE_JSON = HttpUtils.RESPONSE_TYPE_JSON
focal_class.modifier: public static final
focal_class.original_string: public static final String RESPONSE_TYPE_JSON = HttpUtils.RESPONSE_TYPE_JSON;
focal_class.type: String
focal_class.var_name: RESPONSE_TYPE_JSON
focal_class.declarator: USER_ERROR_MESSAGE = "Internal error executing command, please contact your system administrator"
focal_class.modifier: public static final
focal_class.original_string: public static final String USER_ERROR_MESSAGE = "Internal error executing command, please contact your system administrator";
focal_class.type: String
focal_class.var_name: USER_ERROR_MESSAGE
focal_class.declarator: newInputDateFormat = Pattern.compile("[\\d]+-[\\d]+-[\\d]+ [\\d]+:[\\d]+:[\\d]+")
focal_class.modifier: public static
focal_class.original_string: public static Pattern newInputDateFormat = Pattern.compile("[\\d]+-[\\d]+-[\\d]+ [\\d]+:[\\d]+:[\\d]+");
focal_class.type: Pattern
focal_class.var_name: newInputDateFormat
focal_class.declarator: s_outputFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
focal_class.modifier: private static final
focal_class.original_string: private static final DateFormat s_outputFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
focal_class.type: DateFormat
focal_class.var_name: s_outputFormat
focal_class.declarator: fieldsForCmdClass = new HashMap<Class<?>, List<Field>>()
focal_class.modifier: protected static final
focal_class.original_string: protected static final Map<Class<?>, List<Field>> fieldsForCmdClass = new HashMap<Class<?>, List<Field>>();
focal_class.type: Map<Class<?>, List<Field>>
focal_class.var_name: fieldsForCmdClass
focal_class.declarator: _responseObject
focal_class.modifier: private
focal_class.original_string: private Object _responseObject;
focal_class.type: Object
focal_class.var_name: _responseObject
focal_class.declarator: fullUrlParams
focal_class.modifier: private
focal_class.original_string: private Map<String, String> fullUrlParams;
focal_class.type: Map<String, String>
focal_class.var_name: fullUrlParams
focal_class.declarator: httpMethod
focal_class.modifier: private
focal_class.original_string: private HTTPMethod httpMethod;
focal_class.type: HTTPMethod
focal_class.var_name: httpMethod
focal_class.declarator: responseType
focal_class.modifier: @Parameter(name = "response", type = CommandType.STRING)
      private
focal_class.original_string: @Parameter(name = "response", type = CommandType.STRING)
      private String responseType;
focal_class.type: String
focal_class.var_name: responseType
focal_class.declarator: _configService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ConfigurationService _configService;
focal_class.type: ConfigurationService
focal_class.var_name: _configService
focal_class.declarator: _accountService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public AccountService _accountService;
focal_class.type: AccountService
focal_class.var_name: _accountService
focal_class.declarator: _userVmService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public UserVmService _userVmService;
focal_class.type: UserVmService
focal_class.var_name: _userVmService
focal_class.declarator: _mgr
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ManagementService _mgr;
focal_class.type: ManagementService
focal_class.var_name: _mgr
focal_class.declarator: _storageService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public StorageService _storageService;
focal_class.type: StorageService
focal_class.var_name: _storageService
focal_class.declarator: _volumeService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public VolumeApiService _volumeService;
focal_class.type: VolumeApiService
focal_class.var_name: _volumeService
focal_class.declarator: _resourceService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ResourceService _resourceService;
focal_class.type: ResourceService
focal_class.var_name: _resourceService
focal_class.declarator: _networkService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public NetworkService _networkService;
focal_class.type: NetworkService
focal_class.var_name: _networkService
focal_class.declarator: _templateService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public TemplateApiService _templateService;
focal_class.type: TemplateApiService
focal_class.var_name: _templateService
focal_class.declarator: _securityGroupService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public SecurityGroupService _securityGroupService;
focal_class.type: SecurityGroupService
focal_class.var_name: _securityGroupService
focal_class.declarator: _snapshotService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public SnapshotApiService _snapshotService;
focal_class.type: SnapshotApiService
focal_class.var_name: _snapshotService
focal_class.declarator: _routerService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public VpcVirtualNetworkApplianceService _routerService;
focal_class.type: VpcVirtualNetworkApplianceService
focal_class.var_name: _routerService
focal_class.declarator: _responseGenerator
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ResponseGenerator _responseGenerator;
focal_class.type: ResponseGenerator
focal_class.var_name: _responseGenerator
focal_class.declarator: _entityMgr
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public EntityManager _entityMgr;
focal_class.type: EntityManager
focal_class.var_name: _entityMgr
focal_class.declarator: _rulesService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public RulesService _rulesService;
focal_class.type: RulesService
focal_class.var_name: _rulesService
focal_class.declarator: _autoScaleService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public AutoScaleService _autoScaleService;
focal_class.type: AutoScaleService
focal_class.var_name: _autoScaleService
focal_class.declarator: _lbService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public LoadBalancingRulesService _lbService;
focal_class.type: LoadBalancingRulesService
focal_class.var_name: _lbService
focal_class.declarator: _ravService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public RemoteAccessVpnService _ravService;
focal_class.type: RemoteAccessVpnService
focal_class.var_name: _ravService
focal_class.declarator: _projectService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ProjectService _projectService;
focal_class.type: ProjectService
focal_class.var_name: _projectService
focal_class.declarator: _firewallService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public FirewallService _firewallService;
focal_class.type: FirewallService
focal_class.var_name: _firewallService
focal_class.declarator: _domainService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public DomainService _domainService;
focal_class.type: DomainService
focal_class.var_name: _domainService
focal_class.declarator: _resourceLimitService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ResourceLimitService _resourceLimitService;
focal_class.type: ResourceLimitService
focal_class.var_name: _resourceLimitService
focal_class.declarator: _storageNetworkService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public StorageNetworkService _storageNetworkService;
focal_class.type: StorageNetworkService
focal_class.var_name: _storageNetworkService
focal_class.declarator: _taggedResourceService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public TaggedResourceService _taggedResourceService;
focal_class.type: TaggedResourceService
focal_class.var_name: _taggedResourceService
focal_class.declarator: _resourceMetaDataService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ResourceMetaDataService _resourceMetaDataService;
focal_class.type: ResourceMetaDataService
focal_class.var_name: _resourceMetaDataService
focal_class.declarator: _vpcService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public VpcService _vpcService;
focal_class.type: VpcService
focal_class.var_name: _vpcService
focal_class.declarator: _networkACLService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public NetworkACLService _networkACLService;
focal_class.type: NetworkACLService
focal_class.var_name: _networkACLService
focal_class.declarator: _s2sVpnService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public Site2SiteVpnService _s2sVpnService;
focal_class.type: Site2SiteVpnService
focal_class.var_name: _s2sVpnService
focal_class.declarator: _queryService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public QueryService _queryService;
focal_class.type: QueryService
focal_class.var_name: _queryService
focal_class.declarator: _usageService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public UsageService _usageService;
focal_class.type: UsageService
focal_class.var_name: _usageService
focal_class.declarator: _networkUsageService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public NetworkUsageService _networkUsageService;
focal_class.type: NetworkUsageService
focal_class.var_name: _networkUsageService
focal_class.declarator: _vmSnapshotService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public VMSnapshotService _vmSnapshotService;
focal_class.type: VMSnapshotService
focal_class.var_name: _vmSnapshotService
focal_class.declarator: dataStoreProviderApiService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public DataStoreProviderApiService dataStoreProviderApiService;
focal_class.type: DataStoreProviderApiService
focal_class.var_name: dataStoreProviderApiService
focal_class.declarator: _vpcProvSvc
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public VpcProvisioningService _vpcProvSvc;
focal_class.type: VpcProvisioningService
focal_class.var_name: _vpcProvSvc
focal_class.declarator: _newLbSvc
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ApplicationLoadBalancerService _newLbSvc;
focal_class.type: ApplicationLoadBalancerService
focal_class.var_name: _newLbSvc
focal_class.declarator: _appLbService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public ApplicationLoadBalancerService _appLbService;
focal_class.type: ApplicationLoadBalancerService
focal_class.var_name: _appLbService
focal_class.declarator: _affinityGroupService
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public AffinityGroupService _affinityGroupService;
focal_class.type: AffinityGroupService
focal_class.var_name: _affinityGroupService
focal_class.declarator: _internalLbElementSvc
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public InternalLoadBalancerElementService _internalLbElementSvc;
focal_class.type: InternalLoadBalancerElementService
focal_class.var_name: _internalLbElementSvc
focal_class.declarator: _internalLbSvc
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public InternalLoadBalancerVMService _internalLbSvc;
focal_class.type: InternalLoadBalancerVMService
focal_class.var_name: _internalLbSvc
focal_class.declarator: _ntwkModel
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public NetworkModel _ntwkModel;
focal_class.type: NetworkModel
focal_class.var_name: _ntwkModel
focal_class.declarator: _alertSvc
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public AlertService _alertSvc;
focal_class.type: AlertService
focal_class.var_name: _alertSvc
focal_class.declarator: _uuidMgr
focal_class.modifier: @Inject
      public
focal_class.original_string: @Inject
      public UUIDManager _uuidMgr;
focal_class.type: UUIDManager
focal_class.var_name: _uuidMgr
focal_class.file: api/src/main/java/org/apache/cloudstack/api/BaseCmd.java
focal_class.identifier: BaseCmd
focal_class.class_method_signature: BaseCmd.execute()
focal_class.full_signature: public abstract void execute()
focal_class.identifier: execute
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void execute()
focal_class.class_method_signature: BaseCmd.configure()
focal_class.full_signature: public void configure()
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void configure()
focal_class.class_method_signature: BaseCmd.getHttpMethod()
focal_class.full_signature: public HTTPMethod getHttpMethod()
focal_class.identifier: getHttpMethod
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: HTTPMethod
focal_class.signature: HTTPMethod getHttpMethod()
focal_class.class_method_signature: BaseCmd.setHttpMethod(final String method)
focal_class.full_signature: public void setHttpMethod(final String method)
focal_class.identifier: setHttpMethod
focal_class.modifiers: public
focal_class.parameters: (final String method)
focal_class.return: void
focal_class.signature: void setHttpMethod(final String method)
focal_class.class_method_signature: BaseCmd.getResponseType()
focal_class.full_signature: public String getResponseType()
focal_class.identifier: getResponseType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getResponseType()
focal_class.class_method_signature: BaseCmd.setResponseType(final String responseType)
focal_class.full_signature: public void setResponseType(final String responseType)
focal_class.identifier: setResponseType
focal_class.modifiers: public
focal_class.parameters: (final String responseType)
focal_class.return: void
focal_class.signature: void setResponseType(final String responseType)
focal_class.class_method_signature: BaseCmd.getCommandName()
focal_class.full_signature: public abstract String getCommandName()
focal_class.identifier: getCommandName
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCommandName()
focal_class.class_method_signature: BaseCmd.getActualCommandName()
focal_class.full_signature: public String getActualCommandName()
focal_class.identifier: getActualCommandName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getActualCommandName()
focal_class.class_method_signature: BaseCmd.getEntityOwnerId()
focal_class.full_signature: public abstract long getEntityOwnerId()
focal_class.identifier: getEntityOwnerId
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getEntityOwnerId()
focal_class.class_method_signature: BaseCmd.getResponseObject()
focal_class.full_signature: public Object getResponseObject()
focal_class.identifier: getResponseObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object getResponseObject()
focal_class.class_method_signature: BaseCmd.setResponseObject(final Object responseObject)
focal_class.full_signature: public void setResponseObject(final Object responseObject)
focal_class.identifier: setResponseObject
focal_class.modifiers: public
focal_class.parameters: (final Object responseObject)
focal_class.return: void
focal_class.signature: void setResponseObject(final Object responseObject)
focal_class.class_method_signature: BaseCmd.getDateString(final Date date)
focal_class.full_signature: public static String getDateString(final Date date)
focal_class.identifier: getDateString
focal_class.modifiers: public static
focal_class.parameters: (final Date date)
focal_class.return: String
focal_class.signature: String getDateString(final Date date)
focal_class.class_method_signature: BaseCmd.getAllFieldsForClass(final Class<?> clazz)
focal_class.full_signature: protected List<Field> getAllFieldsForClass(final Class<?> clazz)
focal_class.identifier: getAllFieldsForClass
focal_class.modifiers: protected
focal_class.parameters: (final Class<?> clazz)
focal_class.return: List<Field>
focal_class.signature: List<Field> getAllFieldsForClass(final Class<?> clazz)
focal_class.class_method_signature: BaseCmd.getParamFields()
focal_class.full_signature: public List<Field> getParamFields()
focal_class.identifier: getParamFields
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Field>
focal_class.signature: List<Field> getParamFields()
focal_class.class_method_signature: BaseCmd.setFullUrlParams(final Map<String, String> map)
focal_class.full_signature: public void setFullUrlParams(final Map<String, String> map)
focal_class.identifier: setFullUrlParams
focal_class.modifiers: public
focal_class.parameters: (final Map<String, String> map)
focal_class.return: void
focal_class.signature: void setFullUrlParams(final Map<String, String> map)
focal_class.class_method_signature: BaseCmd.getFullUrlParams()
focal_class.full_signature: public Map<String, String> getFullUrlParams()
focal_class.identifier: getFullUrlParams
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getFullUrlParams()
focal_class.class_method_signature: BaseCmd.validateSpecificParameters(final Map<String, String> params)
focal_class.full_signature: public void validateSpecificParameters(final Map<String, String> params)
focal_class.identifier: validateSpecificParameters
focal_class.modifiers: public
focal_class.parameters: (final Map<String, String> params)
focal_class.return: void
focal_class.signature: void validateSpecificParameters(final Map<String, String> params)
focal_class.class_method_signature: BaseCmd.isDisplay()
focal_class.full_signature: public boolean isDisplay()
focal_class.identifier: isDisplay
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDisplay()
focal_class.class_method_signature: BaseCmd.getEntityVO(Class entityType, Object entityId)
focal_class.full_signature: private Object getEntityVO(Class entityType, Object entityId)
focal_class.identifier: getEntityVO
focal_class.modifiers: private
focal_class.parameters: (Class entityType, Object entityId)
focal_class.return: Object
focal_class.signature: Object getEntityVO(Class entityType, Object entityId)
focal_method.body: public String getActualCommandName() {
          String cmdName = null;
          if (this.getClass().getAnnotation(APICommand.class) != null) {
              cmdName = this.getClass().getAnnotation(APICommand.class).name();
          } else {
              cmdName = this.getClass().getName();
          }
         return cmdName;
      }
focal_method.class_method_signature: BaseCmd.getActualCommandName()
focal_method.full_signature: public String getActualCommandName()
focal_method.identifier: getActualCommandName
focal_method.invocations: getAnnotation getClass name getAnnotation getClass getName getClass
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getActualCommandName()