Skip to content

Commit b673c21

Browse files
committed
api_refactor: refactor job (async jobs) apis
- Fix refactored apis, mappings in commands*.in - Fix comments etc. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 7ac4879 commit b673c21

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎api/src/com/cloud/server/ManagementService.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.apache.cloudstack.api.user.template.command.UpdateTemplateCmd;
3333
import org.apache.cloudstack.api.user.vm.command.GetVMPasswordCmd;
3434
import com.cloud.api.commands.ListAlertsCmd;
35-
import com.cloud.api.commands.ListAsyncJobsCmd;
35+
import org.apache.cloudstack.api.user.job.command.ListAsyncJobsCmd;
3636
import com.cloud.api.commands.ListCapabilitiesCmd;
3737
import com.cloud.api.commands.ListCapacityCmd;
3838
import com.cloud.api.commands.ListCfgsByCmd;

‎api/src/org/apache/cloudstack/api/ResponseGenerator.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import org.apache.cloudstack.api.ApiConstants.HostDetails;
2424
import org.apache.cloudstack.api.ApiConstants.VMDetails;
25-
import com.cloud.api.commands.QueryAsyncJobResultCmd;
25+
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
2626
import com.cloud.api.response.AccountResponse;
2727
import com.cloud.api.response.AsyncJobResponse;
2828
import com.cloud.api.response.AutoScalePolicyResponse;

api/src/com/cloud/api/commands/ListAsyncJobsCmd.java renamed to api/src/org/apache/cloudstack/api/user/job/command/ListAsyncJobsCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.job.command;
1818

1919
import java.util.ArrayList;
2020
import java.util.Date;

api/src/com/cloud/api/commands/QueryAsyncJobResultCmd.java renamed to api/src/org/apache/cloudstack/api/user/job/command/QueryAsyncJobResultCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.job.command;
1818

1919
import org.apache.log4j.Logger;
2020

‎client/tomcatconf/commands.properties.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ migrateVolume=com.cloud.api.commands.MigrateVolumeCmd;15
260260
registerUserKeys=com.cloud.api.commands.RegisterCmd;1
261261

262262
### async-query command
263-
queryAsyncJobResult=com.cloud.api.commands.QueryAsyncJobResultCmd;15
264-
listAsyncJobs=com.cloud.api.commands.ListAsyncJobsCmd;15
263+
queryAsyncJobResult=org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;15
264+
listAsyncJobs=org.apache.cloudstack.api.user.job.command.ListAsyncJobsCmd;15
265265

266266
#### storage pools commands
267267
listStoragePools=com.cloud.api.commands.ListStoragePoolsCmd;3

‎server/src/com/cloud/api/ApiResponseHelper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import com.cloud.acl.ControlledEntity.ACLType;
4040
import org.apache.cloudstack.api.ApiConstants.HostDetails;
4141
import org.apache.cloudstack.api.ApiConstants.VMDetails;
42-
import com.cloud.api.commands.QueryAsyncJobResultCmd;
42+
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
4343
import com.cloud.api.response.AccountResponse;
4444
import com.cloud.api.response.ApiResponseSerializer;
4545
import com.cloud.api.response.AsyncJobResponse;

‎server/src/com/cloud/async/AsyncJobManager.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import java.util.List;
2020

21-
import com.cloud.api.commands.QueryAsyncJobResultCmd;
21+
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
2222
import com.cloud.utils.component.Manager;
2323

2424
public interface AsyncJobManager extends Manager {

‎server/src/com/cloud/async/AsyncJobManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import javax.ejb.Local;
3535
import javax.naming.ConfigurationException;
3636

37+
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
3738
import org.apache.log4j.Logger;
3839
import org.apache.log4j.NDC;
3940

@@ -43,7 +44,6 @@
4344
import org.apache.cloudstack.api.BaseAsyncCmd;
4445
import org.apache.cloudstack.api.BaseCmd;
4546
import org.apache.cloudstack.api.ServerApiException;
46-
import com.cloud.api.commands.QueryAsyncJobResultCmd;
4747
import com.cloud.api.response.ExceptionResponse;
4848
import com.cloud.async.dao.AsyncJobDao;
4949
import com.cloud.cluster.ClusterManager;

‎server/src/com/cloud/server/ManagementServerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import javax.crypto.spec.SecretKeySpec;
4444

4545
import org.apache.cloudstack.api.user.iso.command.ListIsosCmd;
46+
import org.apache.cloudstack.api.user.job.command.ListAsyncJobsCmd;
4647
import org.apache.cloudstack.api.user.ssh.command.DeleteSSHKeyPairCmd;
4748
import org.apache.cloudstack.api.user.ssh.command.RegisterSSHKeyPairCmd;
4849
import org.apache.cloudstack.api.user.template.command.ListTemplatesCmd;
@@ -69,7 +70,6 @@
6970
import com.cloud.api.commands.ExtractVolumeCmd;
7071
import org.apache.cloudstack.api.user.vm.command.GetVMPasswordCmd;
7172
import com.cloud.api.commands.ListAlertsCmd;
72-
import com.cloud.api.commands.ListAsyncJobsCmd;
7373
import com.cloud.api.commands.ListCapabilitiesCmd;
7474
import com.cloud.api.commands.ListCapacityCmd;
7575
import com.cloud.api.commands.ListCfgsByCmd;

0 commit comments

Comments
 (0)