public static class ServerInfo.Builder extends Server.Builder
owner, runtime, status
name, resourceUri, uuid
Constructor and Description |
---|
Builder() |
equals, hashCode
public ServerInfo.Builder cpu(int cpu)
cpu
- server’s CPU Clock speed measured in MHzpublic ServerInfo.Builder cpusInsteadOfCores(boolean cpusInsteadOfCores)
cpusInsteadOfCores
- expose server SMPs as separate CPUs, instead of cores of a single CPUpublic ServerInfo.Builder drives(List<ServerDrive> drives)
drives
- list of attached Drives to serverpublic ServerInfo.Builder enableNuma(boolean enableNuma)
enableNuma
- expose NUMA topology to the serverpublic ServerInfo.Builder hvRelaxed(boolean hvRelaxed)
hvRelaxed
- improve performance of Windows serverspublic ServerInfo.Builder hvTsc(boolean hvTsc)
hvTsc
- improves performance of Windows servers with the trade off that the serverspublic ServerInfo.Builder memory(BigInteger memory)
memory
- server’s Random Access Memory measured in bytespublic ServerInfo.Builder meta(Map<String,String> meta)
meta
- user assigned meta information for this serverpublic ServerInfo.Builder nics(List<NIC> nics)
nics
- list of nics attached to this serverpublic ServerInfo.Builder requirements(List<String> requirements)
requirements
- a collection of special requirements for this serverpublic ServerInfo.Builder tags(List<Tag> tags)
tags
- list of tags this server is associated withpublic ServerInfo.Builder vncPassword(String vncPassword)
vncPassword
- VNC Password to connect to serverpublic ServerInfo.Builder smp(int smp)
smp
- Symmetric Multiprocessing (SMP) i.e. number of CPU corespublic ServerInfo.Builder owner(Owner owner)
owner
in class Server.Builder
owner
- server's owner.public ServerInfo.Builder status(ServerStatus status)
status
in class Server.Builder
status
- Status of the guest.public ServerInfo.Builder runtime(ServerRuntime runtime)
runtime
in class Server.Builder
runtime
- Runtime information of the guestpublic ServerInfo.Builder uuid(String uuid)
uuid
in class Server.Builder
public ServerInfo.Builder name(String name)
name
in class Server.Builder
public ServerInfo.Builder resourceUri(URI resourceUri)
resourceUri
in class Server.Builder
public static ServerInfo.Builder fromServerInfo(ServerInfo serverInfo)
public static ServerInfo.Builder fromServer(Server in)
public ServerInfo build()
build
in class Server.Builder
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.