forked from apache/cloudstack
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
827 changed files
with
27,521 additions
and
17,958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http:https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package com.cloud.agent.api; | ||
|
||
import java.util.List; | ||
|
||
import com.cloud.agent.api.to.VolumeTO; | ||
|
||
public class CreateVMSnapshotAnswer extends Answer { | ||
|
||
private List<VolumeTO> volumeTOs; | ||
private VMSnapshotTO vmSnapshotTo; | ||
|
||
|
||
public List<VolumeTO> getVolumeTOs() { | ||
return volumeTOs; | ||
} | ||
|
||
public void setVolumeTOs(List<VolumeTO> volumeTOs) { | ||
this.volumeTOs = volumeTOs; | ||
} | ||
|
||
public VMSnapshotTO getVmSnapshotTo() { | ||
return vmSnapshotTo; | ||
} | ||
|
||
public void setVmSnapshotTo(VMSnapshotTO vmSnapshotTo) { | ||
this.vmSnapshotTo = vmSnapshotTo; | ||
} | ||
|
||
public CreateVMSnapshotAnswer() { | ||
|
||
} | ||
|
||
public CreateVMSnapshotAnswer(CreateVMSnapshotCommand cmd, boolean success, | ||
String result) { | ||
super(cmd, success, result); | ||
} | ||
|
||
public CreateVMSnapshotAnswer(CreateVMSnapshotCommand cmd, | ||
VMSnapshotTO vmSnapshotTo, List<VolumeTO> volumeTOs) { | ||
super(cmd, true, ""); | ||
this.vmSnapshotTo = vmSnapshotTo; | ||
this.volumeTOs = volumeTOs; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
api/src/com/cloud/agent/api/CreateVolumeFromVMSnapshotAnswer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http:https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package com.cloud.agent.api; | ||
|
||
import com.cloud.agent.api.to.VolumeTO; | ||
|
||
public class CreateVolumeFromVMSnapshotAnswer extends Answer { | ||
private String path; | ||
private VolumeTO volumeTo; | ||
|
||
public VolumeTO getVolumeTo() { | ||
return volumeTo; | ||
} | ||
|
||
public CreateVolumeFromVMSnapshotAnswer( | ||
CreateVolumeFromVMSnapshotCommand cmd, VolumeTO volumeTo) { | ||
super(cmd, true, ""); | ||
this.volumeTo = volumeTo; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
protected CreateVolumeFromVMSnapshotAnswer() { | ||
|
||
} | ||
|
||
public CreateVolumeFromVMSnapshotAnswer( | ||
CreateVolumeFromVMSnapshotCommand cmd, String path) { | ||
super(cmd, true, ""); | ||
this.path = path; | ||
} | ||
|
||
public CreateVolumeFromVMSnapshotAnswer( | ||
CreateVolumeFromVMSnapshotCommand cmd, boolean result, String string) { | ||
super(cmd, result, string); | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
api/src/com/cloud/agent/api/CreateVolumeFromVMSnapshotCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http:https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
package com.cloud.agent.api; | ||
|
||
import com.cloud.agent.api.to.StorageFilerTO; | ||
import com.cloud.vm.DiskProfile; | ||
|
||
public class CreateVolumeFromVMSnapshotCommand extends Command { | ||
|
||
protected String path; | ||
protected String name; | ||
protected Boolean fullClone; | ||
protected String storagePoolUuid; | ||
private StorageFilerTO pool; | ||
private DiskProfile diskProfile; | ||
private Long volumeId; | ||
|
||
public DiskProfile getDskch() { | ||
return diskProfile; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public Long getVolumeId() { | ||
return volumeId; | ||
} | ||
|
||
protected CreateVolumeFromVMSnapshotCommand() { | ||
|
||
} | ||
|
||
public CreateVolumeFromVMSnapshotCommand(String path, String name, | ||
Boolean fullClone, String storagePoolUuid) { | ||
this.path = path; | ||
this.name = name; | ||
this.fullClone = fullClone; | ||
this.storagePoolUuid = storagePoolUuid; | ||
} | ||
|
||
public CreateVolumeFromVMSnapshotCommand(String path, String name, | ||
Boolean fullClone, String storagePoolUuid, StorageFilerTO pool, | ||
DiskProfile diskProfile, Long volumeId) { | ||
this.path = path; | ||
this.name = name; | ||
this.fullClone = fullClone; | ||
this.storagePoolUuid = storagePoolUuid; | ||
this.pool = pool; | ||
this.diskProfile = diskProfile; | ||
this.volumeId = volumeId; | ||
} | ||
|
||
@Override | ||
public boolean executeInSequence() { | ||
return false; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public Boolean getFullClone() { | ||
return fullClone; | ||
} | ||
|
||
public String getStoragePoolUuid() { | ||
return storagePoolUuid; | ||
} | ||
|
||
public StorageFilerTO getPool() { | ||
return pool; | ||
} | ||
} |
Oops, something went wrong.