cloudstack/agent-simulator/src/com/cloud/simulator/MockVm.java

34 lines
743 B
Java

/**
* Copyright (C) 2011 Cloud.com, Inc. All rights reserved.
*/
package com.cloud.simulator;
import com.cloud.vm.VirtualMachine.State;
// As storage is mapped from storage device, can virtually treat that VM here does
// not need any local storage resource, therefore we don't have attribute here for storage
public interface MockVm {
public String getName();
public State getState();
public void setState(State state);
public void setHostId(long hostId);
public long getMemory();
public int getCpu();
public int getVncPort();
public void setName(String name);
public void setMemory(long memory);
public void setCpu(int cpu);
public void setVncPort(int vncPort);
public long getId();
}