mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
7ac48798b4
commit
b673c21174
|
|
@ -32,7 +32,7 @@ import org.apache.cloudstack.api.user.template.command.ListTemplatesCmd;
|
|||
import org.apache.cloudstack.api.user.template.command.UpdateTemplateCmd;
|
||||
import org.apache.cloudstack.api.user.vm.command.GetVMPasswordCmd;
|
||||
import com.cloud.api.commands.ListAlertsCmd;
|
||||
import com.cloud.api.commands.ListAsyncJobsCmd;
|
||||
import org.apache.cloudstack.api.user.job.command.ListAsyncJobsCmd;
|
||||
import com.cloud.api.commands.ListCapabilitiesCmd;
|
||||
import com.cloud.api.commands.ListCapacityCmd;
|
||||
import com.cloud.api.commands.ListCfgsByCmd;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import java.util.List;
|
|||
|
||||
import org.apache.cloudstack.api.ApiConstants.HostDetails;
|
||||
import org.apache.cloudstack.api.ApiConstants.VMDetails;
|
||||
import com.cloud.api.commands.QueryAsyncJobResultCmd;
|
||||
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
|
||||
import com.cloud.api.response.AccountResponse;
|
||||
import com.cloud.api.response.AsyncJobResponse;
|
||||
import com.cloud.api.response.AutoScalePolicyResponse;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
package com.cloud.api.commands;
|
||||
package org.apache.cloudstack.api.user.job.command;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
package com.cloud.api.commands;
|
||||
package org.apache.cloudstack.api.user.job.command;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
|
|
@ -260,8 +260,8 @@ migrateVolume=com.cloud.api.commands.MigrateVolumeCmd;15
|
|||
registerUserKeys=com.cloud.api.commands.RegisterCmd;1
|
||||
|
||||
### async-query command
|
||||
queryAsyncJobResult=com.cloud.api.commands.QueryAsyncJobResultCmd;15
|
||||
listAsyncJobs=com.cloud.api.commands.ListAsyncJobsCmd;15
|
||||
queryAsyncJobResult=org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;15
|
||||
listAsyncJobs=org.apache.cloudstack.api.user.job.command.ListAsyncJobsCmd;15
|
||||
|
||||
#### storage pools commands
|
||||
listStoragePools=com.cloud.api.commands.ListStoragePoolsCmd;3
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import com.cloud.acl.ControlledEntity;
|
|||
import com.cloud.acl.ControlledEntity.ACLType;
|
||||
import org.apache.cloudstack.api.ApiConstants.HostDetails;
|
||||
import org.apache.cloudstack.api.ApiConstants.VMDetails;
|
||||
import com.cloud.api.commands.QueryAsyncJobResultCmd;
|
||||
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
|
||||
import com.cloud.api.response.AccountResponse;
|
||||
import com.cloud.api.response.ApiResponseSerializer;
|
||||
import com.cloud.api.response.AsyncJobResponse;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ package com.cloud.async;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import com.cloud.api.commands.QueryAsyncJobResultCmd;
|
||||
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
|
||||
import com.cloud.utils.component.Manager;
|
||||
|
||||
public interface AsyncJobManager extends Manager {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import java.util.concurrent.TimeUnit;
|
|||
import javax.ejb.Local;
|
||||
import javax.naming.ConfigurationException;
|
||||
|
||||
import org.apache.cloudstack.api.user.job.command.QueryAsyncJobResultCmd;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.log4j.NDC;
|
||||
|
||||
|
|
@ -43,7 +44,6 @@ import com.cloud.api.ApiSerializerHelper;
|
|||
import org.apache.cloudstack.api.BaseAsyncCmd;
|
||||
import org.apache.cloudstack.api.BaseCmd;
|
||||
import org.apache.cloudstack.api.ServerApiException;
|
||||
import com.cloud.api.commands.QueryAsyncJobResultCmd;
|
||||
import com.cloud.api.response.ExceptionResponse;
|
||||
import com.cloud.async.dao.AsyncJobDao;
|
||||
import com.cloud.cluster.ClusterManager;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ import javax.crypto.Mac;
|
|||
import javax.crypto.spec.SecretKeySpec;
|
||||
|
||||
import org.apache.cloudstack.api.user.iso.command.ListIsosCmd;
|
||||
import org.apache.cloudstack.api.user.job.command.ListAsyncJobsCmd;
|
||||
import org.apache.cloudstack.api.user.ssh.command.DeleteSSHKeyPairCmd;
|
||||
import org.apache.cloudstack.api.user.ssh.command.RegisterSSHKeyPairCmd;
|
||||
import org.apache.cloudstack.api.user.template.command.ListTemplatesCmd;
|
||||
|
|
@ -69,7 +70,6 @@ import com.cloud.api.commands.DestroySystemVmCmd;
|
|||
import com.cloud.api.commands.ExtractVolumeCmd;
|
||||
import org.apache.cloudstack.api.user.vm.command.GetVMPasswordCmd;
|
||||
import com.cloud.api.commands.ListAlertsCmd;
|
||||
import com.cloud.api.commands.ListAsyncJobsCmd;
|
||||
import com.cloud.api.commands.ListCapabilitiesCmd;
|
||||
import com.cloud.api.commands.ListCapacityCmd;
|
||||
import com.cloud.api.commands.ListCfgsByCmd;
|
||||
|
|
|
|||
Loading…
Reference in New Issue