Skip to content

Commit

Permalink
Merge from master and fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
minchen07 committed Feb 25, 2013
2 parents a433a29 + c30da35 commit fbfc5c6
Show file tree
Hide file tree
Showing 827 changed files with 27,521 additions and 17,958 deletions.
210 changes: 141 additions & 69 deletions LICENSE

Large diffs are not rendered by default.

49 changes: 24 additions & 25 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,7 @@



Source code distribution if this software contains third party resources requiring
the following notices:


For
jquery.md5.js


jQuery MD5 Plugin 1.2.1
https://github.com/blueimp/jQuery-MD5

Copyright 2010, Sebastian Tschan
https://blueimp.net

Licensed under the MIT license:
http:https://creativecommons.org/licenses/MIT/

Based on
A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
Digest Algorithm, as defined in RFC 1321.
Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
Distributed under the BSD License
See http:https://pajhome.org.uk/crypt/md5 for more info.
This distribution contains third party resources requiring the following notices:


For
Expand Down Expand Up @@ -66,6 +43,28 @@
Date: Thu May 12 15:04:36 2011 -0400


For
jquery.md5.js


jQuery MD5 Plugin 1.2.1
https://github.com/blueimp/jQuery-MD5

Copyright 2010, Sebastian Tschan
https://blueimp.net

Licensed under the MIT license:
http:https://creativecommons.org/licenses/MIT/

Based on
A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
Digest Algorithm, as defined in RFC 1321.
Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
Distributed under the BSD License
See http:https://pajhome.org.uk/crypt/md5 for more info.


For
jquery.colorhelpers.js

Expand All @@ -76,4 +75,4 @@

Inspiration from jQuery color animation plugin by John Resig.

Released under the MIT license by Ole Laursen, October 2009.
Released under the MIT license by Ole Laursen, October 2009.
2 changes: 1 addition & 1 deletion agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.cloudstack</groupId>
<artifactId>cloudstack</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.2.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.cloudstack</groupId>
<artifactId>cloudstack</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.2.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
Expand Down
62 changes: 62 additions & 0 deletions api/src/com/cloud/agent/api/CreateVMSnapshotAnswer.java
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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,29 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package com.cloud.vm;
package com.cloud.agent.api;

import java.util.List;

/**
*
* be an information carrier within one thread only.
*
*/
public class VirtualEnvironment {
/**
* The actual machine
*/
public VirtualMachine machine;

/**
* Disks to assign to the machine in order.
*/
public List<VirtualDisk> disks;

/**
* Networks to assign to the machine.
*/
public List<VirtualNetwork> networks;
import com.cloud.agent.api.to.VolumeTO;
import com.cloud.vm.VirtualMachine;

public class CreateVMSnapshotCommand extends VMSnapshotBaseCommand {

public CreateVMSnapshotCommand(String vmName, VMSnapshotTO snapshot, List<VolumeTO> volumeTOs, String guestOSType, VirtualMachine.State vmState) {
super(vmName, snapshot, volumeTOs, guestOSType);
this.vmState = vmState;
}

private VirtualMachine.State vmState;


public VirtualMachine.State getVmState() {
return vmState;
}

public void setVmState(VirtualMachine.State vmState) {
this.vmState = vmState;
}

/**
* Boot options to assign to the machine.
*/
public String bootOptions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.cloud.storage.StoragePool;


/**
* This currently assumes that both primary and secondary storage are mounted on the XenServer.
*/
Expand Down
54 changes: 54 additions & 0 deletions api/src/com/cloud/agent/api/CreateVolumeFromVMSnapshotAnswer.java
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 api/src/com/cloud/agent/api/CreateVolumeFromVMSnapshotCommand.java
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;
}
}
Loading

0 comments on commit fbfc5c6

Please sign in to comment.