orca.cod
Class Machine
java.lang.Object
orca.cod.Node
orca.cod.Machine
- All Implemented Interfaces:
- java.lang.Cloneable, ISerialize
public class Machine
- extends Node
| Fields inherited from class orca.cod.Node |
aboutToClose, aboutToModify, available, computons, dirty, domainZeroMemory, forcedClose, growing, hostKey, hostName, HP_HACK, id, logicalId, macAddresses, machineId, machineType, memory, newHost, newHostID, newHostIP, newHostName, newLogicalId, newMachineId, newResourceType, newSaveRestore, nodeType, NodeTypeAll, NodeTypeDefault, NodeTypePhysicalMachine, NodeTypeVirtualMachine, originalNode, prefferedIP, privateIP, properties, PropertyAvailable, PropertyCodNodeDN, PropertyComputons, PropertyConsole, PropertyCpuCache, PropertyCpuModel, PropertyCpuSpeed, PropertyDhcpHWAddress, PropertyDhcpLeaseDN, PropertyDhcpOption, PropertyDhcpOptionsDN, PropertyDhcpStatements, PropertyDnsClass, PropertyDnsMXRecord, PropertyDnsZone, PropertyDonated, PropertyEthernet, PropertyHostKey, PropertyHostName, PropertyID, PropertyKernel, PropertyLogicalId, PropertyMachineId, PropertyMachineName, PropertyMacs, PropertyNetSpeed, PropertyNewHostID, PropertyNewHostIP, PropertyNewHostName, PropertyNewLogicalId, PropertyNewMachineId, PropertyNewSaveRestore, PropertyNic, PropertyNodeType, PropertyNodeUpdates, PropertyNumCpus, PropertyPendingClose, PropertyPendingModify, PropertyPendingOpen, PropertyPoolID, PropertyPoolName, PropertyPoolResourceType, PropertyPreferredGateway, PropertyPreferredIP, PropertyPreferredNetmask, PropertyPreferredNetwork, PropertyPrivateGateway, PropertyPrivateIP, PropertyPrivateNetmask, PropertyPrivateNetwork, PropertyPublicGateway, PropertyPublicIP, PropertyPublicNetmask, PropertyPublicNetwork, PropertyRealHostID, PropertyRealHostIP, PropertyRealHostName, PropertyRemoteReservationID, PropertyReservationID, PropertyResourceBandwidthExtra, PropertyResourceBandwidthShare, PropertyResourceCpuExtra, PropertyResourceCpuShare, PropertyResourceMemory, PropertyResourceNewBandwidthExtra, PropertyResourceNewBandwidthShare, PropertyResourceNewCpuExtra, PropertyResourceNewCpuShare, PropertyResourceNewMemory, PropertyResourceType, PropertyRoot, PropertySaveRestore, PropertySequence, PropertySerial, PropertyServiceGateway, PropertyServiceIP, PropertyServiceNetwork, PropertyServiceNetworkMask, PropertySlice, PropertySliceID, PropertySliceNumericID, PropertySliverID, PropertyStatusMessage, PropertyType, PropertyVmmMemory, publicIP, realHost, realHostID, realHostIP, realHostName, reservation, resourceType, saveRestore, SaveRestoreNone, SaveRestoreSaved, SaveRestoreToRestore, SaveRestoreToSave, sequence, sliverIdx, statusMsg, updates, VmmMemorySlack |
|
Constructor Summary |
Machine()
Create a new instance |
|
Method Summary |
boolean |
checkPending()
Checks if there is an operation in progress. |
int |
getMachinePendingState()
|
int |
getMachineState()
|
static java.lang.String |
getPendingStateName(int pending)
Returns the name for the given pending state number |
java.lang.String |
getSiteName()
Returns the name of the site in control of this machine |
static java.lang.String |
getStateName(int state)
Returns the name for the given state number |
int |
getType()
Returns the machine type. |
int |
reset()
Reset action |
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
void |
resetComplete(int code)
Reset action completed |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
setSiteName(java.lang.String site)
Sets the site in control of this machine |
| Methods inherited from class orca.cod.Node |
activate, active, addMAC, clearStatus, clone, closed, closing, completeModify, configIP, consumeStateMsg, copy, deactivate, down, equals, fail, failed, getBandwidthExtra, getBandwidthShare, getCpuExtra, getCpuShare, getEthernet, getHostKey, getHostName, getLogicalId, getMachineId, getMachineName, getNewBandwidthExtra, getNewBandwidthShare, getNewCpuExtra, getNewCpuShare, getNewMemory, getNodeID, getNodeType, getPoolID, getPoolName, getPoolResourceType, getPrivateInetAddr, getPrivateIPaddr, getProperties, getProperty, getPublicInetAddr, getPublicIP, getPublicIPaddr, getRealHost, getRemoteReservationID, getReservationID, getResourceType, getSequence, getServiceGateway, getServiceIP, getServiceNetwork, getServiceNetworkMask, getSlice, getSliceID, getSliceNumericID, getSliverIdx, getState, getStateString, getStatusMessage, hashCode, hasPending, isAvailable, isClosed, isClosing, isDirty, isDonated, isModifying, isOpening, isPhysicalMachine, isVirtualMachine, merge, opening, releaseToPool, relocate, resetMacs, revisit, save, saveMacs, setAvailable, setBandwidthExtra, setBandwidthShare, setClosing, setCpuExtra, setCpuShare, setDirty, setDnsClass, setDnsZone, setDonated, setEthernet, setGateway, setHostKey, setHostName, setHostName, setLogicalId, setMachineId, setMachineName, setMachineType, setModifying, setMXRecord, setNewBandwidthExtra, setNewBandwidthShare, setNewCpuExtra, setNewCpuShare, setNewMemory, setNic, setNodeType, setOpening, setPhysicalMachine, setPoolName, setPrivateGateway, setPrivateIP, setPrivateNetmask, setPrivateNetwork, setProperties, setProperty, setPublicIP, setPublicIP, setPublicNetmask, setPublicNetwork, setRemoteReservationID, setReservationID, setResourceType, setSequence, setServiceGateway, setServiceIP, setServiceIP, setServiceNetwork, setServiceNetworkMask, setSlice, setSliceID, setSliceNumericID, setSliverIdx, setVirtualMachine, toString, transition, unsetNaming |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
PropertySiteName
public static final java.lang.String PropertySiteName
- Site this machine is assigned to.
- See Also:
- Constant Field Values
PropertyState
public static final java.lang.String PropertyState
- Machine state.
- See Also:
- Constant Field Values
PropertyPending
public static final java.lang.String PropertyPending
- Machine pending state.
- See Also:
- Constant Field Values
PropertyMachineType
public static final java.lang.String PropertyMachineType
- See Also:
- Constant Field Values
StateActive
public static final int StateActive
- See Also:
- Constant Field Values
StateFailed
public static final int StateFailed
- See Also:
- Constant Field Values
PendingNone
public static final int PendingNone
- See Also:
- Constant Field Values
PendingResetting
public static final int PendingResetting
- See Also:
- Constant Field Values
StateNames
public static final java.lang.String[] StateNames
PendingNames
public static final java.lang.String[] PendingNames
Unknown
public static final java.lang.String Unknown
- Unknown state/pending state name
- See Also:
- Constant Field Values
state
protected int state
- Current state
pending
protected int pending
- Current pending state
site
protected java.lang.String site
- Site name
type
protected int type
Machine
public Machine()
- Create a new instance
reset
public int reset()
- Reset action
- Returns:
resetComplete
public void resetComplete(int code)
- Reset action completed
- Parameters:
code - completion code
checkPending
public boolean checkPending()
- Checks if there is an operation in progress.
- Returns:
- True if an operation is in progress
save
public void save(java.util.Properties p)
throws java.lang.Exception
- Serializes the object into the given properties list.
- Specified by:
save in interface ISerialize- Overrides:
save in class Node
- Parameters:
p - properties list to serialize the object into
- Throws:
java.lang.Exception
reset
public void reset(java.util.Properties p)
throws java.lang.Exception
- De-serializes the object from the given properties list.
- Specified by:
reset in interface ISerialize- Overrides:
reset in class Node
- Parameters:
p - properties list containing the serialized version of
the object
- Throws:
java.lang.Exception
getSiteName
public java.lang.String getSiteName()
- Returns the name of the site in control of this machine
- Returns:
setSiteName
public void setSiteName(java.lang.String site)
- Sets the site in control of this machine
- Parameters:
site -
getMachineState
public int getMachineState()
getMachinePendingState
public int getMachinePendingState()
getType
public int getType()
- Returns the machine type.
- Returns:
getStateName
public static java.lang.String getStateName(int state)
- Returns the name for the given state number
- Parameters:
state - State number
- Returns:
getPendingStateName
public static java.lang.String getPendingStateName(int pending)
- Returns the name for the given pending state number
- Parameters:
pending - Pending state number
- Returns:
Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.