Licensed to jclouds, Inc. (jclouds) under one or more
contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. jclouds 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
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.
import static com.google.common.base.Preconditions.checkNotNull;
return new Server(uuid, name, cpu, smp, mem, persistent, devices, bootDeviceIds, use, nics, vnc, description);
- CPU quota in core MHz.
- number of virtual processors or null if calculated based on cpu.
- virtual memory size in MB.
- 'true' means that server will revert to a 'stopped' status on server stop or shutdown,
rather than being destroyed automatically.
- devices present, mapped by id
- ids of the devices to boot, e.g. ide:0:0 or ide:1:0
- See also:
result = prime * result + cpu;
result = prime * result + mem;
result = prime * result + (persistent ? 1231 : 1237);
if (other.bootDeviceIds != null)
if (other.description != null)
if (other.devices != null)
return "[uuid=" + uuid + ", name=" + name + ", use=" + use + ", cpu=" + cpu + ", smp=" + smp + ", mem=" + mem