File tree Expand file tree Collapse file tree
integration-test/test/org/apache/cloudstack/storage/test
src/org/apache/cloudstack/storage
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import javax .inject .Inject ;
2424
2525import org .apache .cloudstack .storage .to .ImageDataStoreTO ;
26- import org .apache .cloudstack .storage .to .ImageOnPrimayDataStoreTO ;
26+ import org .apache .cloudstack .storage .to .ImageOnPrimaryDataStoreTO ;
2727import org .apache .cloudstack .storage .to .PrimaryDataStoreTO ;
2828import org .apache .cloudstack .storage .to .TemplateTO ;
2929import org .mockito .Mockito ;
@@ -126,7 +126,7 @@ public void testInitResource() {
126126
127127 @ Test
128128 public void testDownloadTemplate () {
129- ImageOnPrimayDataStoreTO image = Mockito .mock (ImageOnPrimayDataStoreTO .class );
129+ ImageOnPrimaryDataStoreTO image = Mockito .mock (ImageOnPrimaryDataStoreTO .class );
130130 PrimaryDataStoreTO primaryStore = Mockito .mock (PrimaryDataStoreTO .class );
131131 Mockito .when (primaryStore .getUuid ()).thenReturn (this .getLocalStorageUuid ());
132132 Mockito .when (image .getPrimaryDataStore ()).thenReturn (primaryStore );
Original file line number Diff line number Diff line change 1818 */
1919package org .apache .cloudstack .storage .command ;
2020
21- import org .apache .cloudstack .storage .to .ImageOnPrimayDataStoreTO ;
21+ import org .apache .cloudstack .storage .to .ImageOnPrimaryDataStoreTO ;
2222import org .apache .cloudstack .storage .to .VolumeTO ;
2323
2424import com .cloud .agent .api .Command ;
2525
2626public class CreateVolumeFromBaseImageCommand extends Command implements StorageSubSystemCommand {
2727 private final VolumeTO volume ;
28- private final ImageOnPrimayDataStoreTO image ;
28+ private final ImageOnPrimaryDataStoreTO image ;
2929
3030 public CreateVolumeFromBaseImageCommand (VolumeTO volume , String image ) {
3131 this .volume = volume ;
@@ -36,7 +36,7 @@ public VolumeTO getVolume() {
3636 return this .volume ;
3737 }
3838
39- public ImageOnPrimayDataStoreTO getImage () {
39+ public ImageOnPrimaryDataStoreTO getImage () {
4040 return this .image ;
4141 }
4242
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public List<DataStoreProvider> getDataStoreProviders() {
6464 return null ;
6565 }
6666
67- public List <StorageProviderResponse > getPrimayrDataStoreProviders () {
67+ public List <StorageProviderResponse > getPrimaryDataStoreProviders () {
6868 List <StorageProviderResponse > providers = new ArrayList <StorageProviderResponse >();
6969 for (DataStoreProvider provider : providerMap .values ()) {
7070 if (provider instanceof PrimaryDataStoreProvider ) {
@@ -138,7 +138,7 @@ public List<StorageProviderResponse> getDataStoreProviders(String type) {
138138 throw new InvalidParameterValueException ("Invalid parameter, need to specify type: either primary or image" );
139139 }
140140 if (type .equalsIgnoreCase (DataStoreProvider .DataStoreProviderType .PRIMARY .toString ())) {
141- return this .getPrimayrDataStoreProviders ();
141+ return this .getPrimaryDataStoreProviders ();
142142 } else if (type .equalsIgnoreCase (DataStoreProvider .DataStoreProviderType .IMAGE .toString ())) {
143143 return this .getImageDataStoreProviders ();
144144 } else {
Original file line number Diff line number Diff line change 2020
2121import org .apache .cloudstack .storage .volume .TemplateOnPrimaryDataStoreInfo ;
2222
23- public class ImageOnPrimayDataStoreTO {
23+ public class ImageOnPrimaryDataStoreTO {
2424 private final String pathOnPrimaryDataStore ;
2525 private PrimaryDataStoreTO dataStore ;
2626 private final TemplateTO template ;
27- public ImageOnPrimayDataStoreTO (TemplateOnPrimaryDataStoreInfo template ) {
27+ public ImageOnPrimaryDataStoreTO (TemplateOnPrimaryDataStoreInfo template ) {
2828 this .pathOnPrimaryDataStore = template .getPath ();
2929 //this.dataStore = template.getPrimaryDataStore().getDataStoreTO();
3030 this .template = new TemplateTO (template .getTemplate ());
Original file line number Diff line number Diff line change 3939import org .apache .cloudstack .storage .command .CreateVolumeFromBaseImageCommand ;
4040import org .apache .cloudstack .storage .command .StorageSubSystemCommand ;
4141import org .apache .cloudstack .storage .datastore .protocol .DataStoreProtocol ;
42- import org .apache .cloudstack .storage .to .ImageOnPrimayDataStoreTO ;
42+ import org .apache .cloudstack .storage .to .ImageOnPrimaryDataStoreTO ;
4343import org .apache .cloudstack .storage .to .VolumeTO ;
4444import org .apache .http .HttpEntity ;
4545import org .apache .http .HttpResponse ;
@@ -207,7 +207,7 @@ protected Answer execute(DeleteVolumeCommand cmd) {
207207
208208 protected Answer execute (CreateVolumeFromBaseImageCommand cmd ) {
209209 VolumeTO volume = cmd .getVolume ();
210- ImageOnPrimayDataStoreTO baseImage = cmd .getImage ();
210+ ImageOnPrimaryDataStoreTO baseImage = cmd .getImage ();
211211 Connection conn = hypervisorResource .getConnection ();
212212
213213 try {
You can’t perform that action at this time.
0 commit comments