Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCAF0FA03 for ; Thu, 21 Mar 2013 01:04:22 +0000 (UTC) Received: (qmail 83649 invoked by uid 500); 21 Mar 2013 01:04:17 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 83594 invoked by uid 500); 21 Mar 2013 01:04:17 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 83404 invoked by uid 99); 21 Mar 2013 01:04:17 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 01:04:17 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id F30D63EA61; Thu, 21 Mar 2013 01:04:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mchen@apache.org To: cloudstack-commits@incubator.apache.org Date: Thu, 21 Mar 2013 01:04:39 -0000 Message-Id: <2f46f43185bc4885934c900c8f2d8736@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [25/25] git commit: refs/heads/api_entity - Add some skeleton of infrastructure entities and UserVm entity. Add some skeleton of infrastructure entities and UserVm entity. Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f89f086a Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f89f086a Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f89f086a Branch: refs/heads/api_entity Commit: f89f086a71865272d0a63d993df556b1c52056dc Parents: 485bcf2 Author: Min Chen Authored: Wed Mar 20 18:03:35 2013 -0700 Committer: Min Chen Committed: Wed Mar 20 18:03:35 2013 -0700 ---------------------------------------------------------------------- .../apache/cloudstack/entity/CloudResource.java | 61 ++++++++ .../cloudstack/entity/cloud/CloudResource.java | 45 ------ .../entity/cloud/ComputeOfferingResource.java | 26 ++++ .../entity/cloud/DiskOfferingResource.java | 26 ++++ .../entity/cloud/InstanceGroupResource.java | 24 +--- .../cloudstack/entity/cloud/NicResource.java | 26 ++++ .../cloudstack/entity/cloud/TemplateResource.java | 26 ++++ .../cloudstack/entity/cloud/UserVmResource.java | 57 ++++++++ .../entity/cloud/VirtualMachineResource.java | 110 ++++++++++++++- .../entity/identity/AccountResource.java | 78 ++++++++++- .../cloudstack/entity/identity/DomainResource.java | 80 +++++++++++ .../entity/infrastructure/ClusterResource.java | 24 +++ .../entity/infrastructure/DataCenterResource.java | 24 +++ .../entity/infrastructure/HostResource.java | 24 +++ .../infrastructure/InfrastructureResource.java | 24 +++ .../entity/infrastructure/PodResource.java | 24 +++ 16 files changed, 612 insertions(+), 67 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/CloudResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/CloudResource.java b/api/src/org/apache/cloudstack/entity/CloudResource.java new file mode 100644 index 0000000..83bfa44 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/CloudResource.java @@ -0,0 +1,61 @@ +// 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://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 org.apache.cloudstack.entity; + +import java.util.Date; + + + +/** + * Base class for cloud resources. + */ +public abstract class CloudResource { + protected long id; + protected String uuid; + protected Date removed; + protected Date created; + + + public Date getRemoved() { + return removed; + } + public void setRemoved(Date removed) { + this.removed = removed; + } + public Date getCreated() { + return created; + } + public void setCreated(Date created) { + this.created = created; + } + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/CloudResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/CloudResource.java b/api/src/org/apache/cloudstack/entity/cloud/CloudResource.java deleted file mode 100644 index 3213c16..0000000 --- a/api/src/org/apache/cloudstack/entity/cloud/CloudResource.java +++ /dev/null @@ -1,45 +0,0 @@ -// 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://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 org.apache.cloudstack.entity.cloud; - -import java.util.Date; - - - -/** - * Base class for cloud resources. - */ -public abstract class CloudResource { - protected Date removed; - protected Date created; - - - public Date getRemoved() { - return removed; - } - public void setRemoved(Date removed) { - this.removed = removed; - } - public Date getCreated() { - return created; - } - public void setCreated(Date created) { - this.created = created; - } - - -} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/ComputeOfferingResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/ComputeOfferingResource.java b/api/src/org/apache/cloudstack/entity/cloud/ComputeOfferingResource.java new file mode 100644 index 0000000..bee016c --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/cloud/ComputeOfferingResource.java @@ -0,0 +1,26 @@ +// 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://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 org.apache.cloudstack.entity.cloud; + +import org.apache.cloudstack.entity.CloudResource; + +/** + * + */ +public class ComputeOfferingResource extends CloudResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/DiskOfferingResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/DiskOfferingResource.java b/api/src/org/apache/cloudstack/entity/cloud/DiskOfferingResource.java new file mode 100644 index 0000000..ae64964 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/cloud/DiskOfferingResource.java @@ -0,0 +1,26 @@ +// 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://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 org.apache.cloudstack.entity.cloud; + +import org.apache.cloudstack.entity.CloudResource; + +/** + * + */ +public class DiskOfferingResource extends CloudResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/InstanceGroupResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/InstanceGroupResource.java b/api/src/org/apache/cloudstack/entity/cloud/InstanceGroupResource.java index 60af39b..d30a3c4 100644 --- a/api/src/org/apache/cloudstack/entity/cloud/InstanceGroupResource.java +++ b/api/src/org/apache/cloudstack/entity/cloud/InstanceGroupResource.java @@ -19,6 +19,7 @@ package org.apache.cloudstack.entity.cloud; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; +import org.apache.cloudstack.entity.CloudResource; import org.apache.cloudstack.entity.identity.AccountResource; @@ -29,30 +30,13 @@ import org.apache.cloudstack.entity.identity.AccountResource; public class InstanceGroupResource extends CloudResource { // attributes - private long id; - private String uuid; private String name; // relationships private AccountResource account; - private List vms; + private List vms; - public long getId() { - return id; - } - - public void setId(long id) { - this.id = id; - } - - public String getUuid() { - return uuid; - } - - public void setUuid(String uuid) { - this.uuid = uuid; - } public String getName() { return name; @@ -70,11 +54,11 @@ public class InstanceGroupResource extends CloudResource { this.account = account; } - public List getVms() { + public List getVms() { return vms; } - public void setVms(List vms) { + public void setVms(List vms) { this.vms = vms; } http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/NicResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/NicResource.java b/api/src/org/apache/cloudstack/entity/cloud/NicResource.java new file mode 100644 index 0000000..b63cc6b --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/cloud/NicResource.java @@ -0,0 +1,26 @@ +// 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://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 org.apache.cloudstack.entity.cloud; + +import org.apache.cloudstack.entity.CloudResource; + +/** + * + */ +public class NicResource extends CloudResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/TemplateResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/TemplateResource.java b/api/src/org/apache/cloudstack/entity/cloud/TemplateResource.java new file mode 100644 index 0000000..fea6818 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/cloud/TemplateResource.java @@ -0,0 +1,26 @@ +// 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://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 org.apache.cloudstack.entity.cloud; + +import org.apache.cloudstack.entity.CloudResource; + +/** + * + */ +public class TemplateResource extends CloudResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/UserVmResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/UserVmResource.java b/api/src/org/apache/cloudstack/entity/cloud/UserVmResource.java new file mode 100644 index 0000000..7085967 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/cloud/UserVmResource.java @@ -0,0 +1,57 @@ +// 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://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 org.apache.cloudstack.entity.cloud; + +import java.util.Map; + +/** + * User VM resource. + */ +public class UserVmResource extends VirtualMachineResource { + + private Map userData; + private String displayName; + + // relationship + private InstanceGroupResource vmGroup; + + public Map getUserData() { + return userData; + } + + public void setUserData(Map userData) { + this.userData = userData; + } + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public InstanceGroupResource getVmGroup() { + return vmGroup; + } + + public void setVmGroup(InstanceGroupResource vmGroup) { + this.vmGroup = vmGroup; + } + + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/cloud/VirtualMachineResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/cloud/VirtualMachineResource.java b/api/src/org/apache/cloudstack/entity/cloud/VirtualMachineResource.java index 35e0139..3dcbd43 100644 --- a/api/src/org/apache/cloudstack/entity/cloud/VirtualMachineResource.java +++ b/api/src/org/apache/cloudstack/entity/cloud/VirtualMachineResource.java @@ -16,9 +16,117 @@ // under the License. package org.apache.cloudstack.entity.cloud; +import java.util.List; + +import org.apache.cloudstack.entity.CloudResource; +import org.apache.cloudstack.entity.identity.AccountResource; +import org.apache.cloudstack.entity.infrastructure.HostResource; + +import com.cloud.hypervisor.Hypervisor.HypervisorType; +import com.cloud.vm.VirtualMachine.State; + /** - * + * VirtualMachine entity resource */ public class VirtualMachineResource extends CloudResource { + //attributes + protected String name; + protected State state = null; + protected HypervisorType hypervisorType; + protected long guestOsId; + protected String vncPassword; + protected boolean haEnabled; + protected boolean limitCpuUse; + + + //relationships + protected HostResource host; + protected AccountResource account; + protected TemplateResource template; + protected ComputeOfferingResource computeOffering; + protected DiskOfferingResource diskOffering; + protected List nics; + + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public State getState() { + return state; + } + public void setState(State state) { + this.state = state; + } + public HypervisorType getHypervisorType() { + return hypervisorType; + } + public void setHypervisorType(HypervisorType hypervisorType) { + this.hypervisorType = hypervisorType; + } + public long getGuestOsId() { + return guestOsId; + } + public void setGuestOsId(long guestOsId) { + this.guestOsId = guestOsId; + } + public String getVncPassword() { + return vncPassword; + } + public void setVncPassword(String vncPassword) { + this.vncPassword = vncPassword; + } + public boolean isHaEnabled() { + return haEnabled; + } + public void setHaEnabled(boolean haEnabled) { + this.haEnabled = haEnabled; + } + public boolean isLimitCpuUse() { + return limitCpuUse; + } + public void setLimitCpuUse(boolean limitCpuUse) { + this.limitCpuUse = limitCpuUse; + } + public HostResource getHost() { + return host; + } + public void setHost(HostResource host) { + this.host = host; + } + public AccountResource getAccount() { + return account; + } + public void setAccount(AccountResource account) { + this.account = account; + } + public TemplateResource getTemplate() { + return template; + } + public void setTemplate(TemplateResource template) { + this.template = template; + } + public ComputeOfferingResource getComputeOffering() { + return computeOffering; + } + public void setComputeOffering(ComputeOfferingResource computeOffering) { + this.computeOffering = computeOffering; + } + public DiskOfferingResource getDiskOffering() { + return diskOffering; + } + public void setDiskOffering(DiskOfferingResource diskOffering) { + this.diskOffering = diskOffering; + } + public List getNics() { + return nics; + } + public void setNics(List nics) { + this.nics = nics; + } + + } http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/identity/AccountResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/identity/AccountResource.java b/api/src/org/apache/cloudstack/entity/identity/AccountResource.java index c64a59d..efb5e65 100644 --- a/api/src/org/apache/cloudstack/entity/identity/AccountResource.java +++ b/api/src/org/apache/cloudstack/entity/identity/AccountResource.java @@ -16,9 +16,85 @@ // under the License. package org.apache.cloudstack.entity.identity; +import java.util.Map; + +import org.apache.cloudstack.entity.CloudResource; + +import com.cloud.user.Account.State; + /** * Account Identity */ -public class AccountResource { +public class AccountResource extends CloudResource { + + // attributes + private String name; + private short type; + private State state; + private String networkDomain; + private Long defaultZoneId; + private Map details; + + // relation + private DomainResource domain; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public short getType() { + return type; + } + + public void setType(short type) { + this.type = type; + } + + public State getState() { + return state; + } + + public void setState(State state) { + this.state = state; + } + + public String getNetworkDomain() { + return networkDomain; + } + + public void setNetworkDomain(String networkDomain) { + this.networkDomain = networkDomain; + } + + public Long getDefaultZoneId() { + return defaultZoneId; + } + + public void setDefaultZoneId(Long defaultZoneId) { + this.defaultZoneId = defaultZoneId; + } + + + public Map getDetails() { + return details; + } + + public void setDetails(Map details) { + this.details = details; + } + + public DomainResource getDomain() { + return domain; + } + + public void setDomain(DomainResource domain) { + this.domain = domain; + } + + } http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/identity/DomainResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/identity/DomainResource.java b/api/src/org/apache/cloudstack/entity/identity/DomainResource.java new file mode 100644 index 0000000..419fefd --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/identity/DomainResource.java @@ -0,0 +1,80 @@ +// 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://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 org.apache.cloudstack.entity.identity; + +import java.util.List; + +import com.cloud.domain.Domain.State; + +/** + * Domain Resource + */ +public class DomainResource { + + // attributes + private String name; + private String path; + private State state; + private String networkDomain; + + + // relationship + private DomainResource parent; + private List children; + + + public DomainResource getParent() { + return parent; + } + public void setParent(DomainResource parent) { + this.parent = parent; + } + public List getChildren() { + return children; + } + public void setChildren(List children) { + this.children = children; + } + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getPath() { + return path; + } + public void setPath(String path) { + this.path = path; + } + public State getState() { + return state; + } + public void setState(State state) { + this.state = state; + } + public String getNetworkDomain() { + return networkDomain; + } + public void setNetworkDomain(String networkDomain) { + this.networkDomain = networkDomain; + } + + + + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/infrastructure/ClusterResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/infrastructure/ClusterResource.java b/api/src/org/apache/cloudstack/entity/infrastructure/ClusterResource.java new file mode 100644 index 0000000..ec0e5ab --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/infrastructure/ClusterResource.java @@ -0,0 +1,24 @@ +// 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://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 org.apache.cloudstack.entity.infrastructure; + +/** + * + */ +public class ClusterResource extends InfrastructureResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/infrastructure/DataCenterResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/infrastructure/DataCenterResource.java b/api/src/org/apache/cloudstack/entity/infrastructure/DataCenterResource.java new file mode 100644 index 0000000..bb2ed56 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/infrastructure/DataCenterResource.java @@ -0,0 +1,24 @@ +// 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://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 org.apache.cloudstack.entity.infrastructure; + +/** + * + */ +public class DataCenterResource extends InfrastructureResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/infrastructure/HostResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/infrastructure/HostResource.java b/api/src/org/apache/cloudstack/entity/infrastructure/HostResource.java new file mode 100644 index 0000000..28ea8a6 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/infrastructure/HostResource.java @@ -0,0 +1,24 @@ +// 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://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 org.apache.cloudstack.entity.infrastructure; + +/** + * + */ +public class HostResource extends InfrastructureResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/infrastructure/InfrastructureResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/infrastructure/InfrastructureResource.java b/api/src/org/apache/cloudstack/entity/infrastructure/InfrastructureResource.java new file mode 100644 index 0000000..980a539 --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/infrastructure/InfrastructureResource.java @@ -0,0 +1,24 @@ +// 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://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 org.apache.cloudstack.entity.infrastructure; + +/** + * Base class for Infrastructure resource. + */ +public abstract class InfrastructureResource { + +} http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f89f086a/api/src/org/apache/cloudstack/entity/infrastructure/PodResource.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/entity/infrastructure/PodResource.java b/api/src/org/apache/cloudstack/entity/infrastructure/PodResource.java new file mode 100644 index 0000000..318527a --- /dev/null +++ b/api/src/org/apache/cloudstack/entity/infrastructure/PodResource.java @@ -0,0 +1,24 @@ +// 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://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 org.apache.cloudstack.entity.infrastructure; + +/** + * + */ +public class PodResource extends InfrastructureResource { + +}