Class VmInfo
java.lang.Object
org.jrd.backend.data.VmInfo
- All Implemented Interfaces:
Serializable
Stores information about Available Virtual Machine.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<VmInfo> private static final Comparator<VmInfo> static final Comparator<VmInfo> private static final Comparator<VmInfo> static final Comparator<VmInfo> private static final longprivate VmInfo.Typeprivate VmDecompilerStatusprivate Stringprivate Stringprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intattachByteman(boolean boot) (package private) static VmInfobase64Deserialize(String base64Representation) booleanstatic intgetCp()getType()getVmId()intgetVmPid()inthashCode()booleanhasName()voidvoidsetBytemanCompanion(boolean boot, int parentPort) voidvoidsetType(VmInfo.Type local) voidsetVmDecompilerStatus(VmDecompilerStatus vmDecompilerStatus) voidvoidvoidsetVmPid(int vmPid) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
vmDecompilerStatus
-
vmId
-
vmPid
private int vmPid -
vmName
-
type
-
cp
-
HOSTNAME_COMPARATOR
-
PORT_COMPARATOR
-
LOCAL_VM_COMPARATOR
-
REMOTE_VM_COMPARATOR
-
FS_VM_COMPARATOR
-
-
Constructor Details
-
VmInfo
Stores information about Available Virtual Machine.- Parameters:
vmId- Unique ID for this VmInfovmPid- Virtual Machine process IDvmName- Name for the Virtual Machine. Hostname for remote VMstype- local, remote, type
-
-
Method Details
-
getVmDecompilerStatus
-
setVmDecompilerStatus
-
removeVmDecompilerStatus
public void removeVmDecompilerStatus() -
replaceVmDecompilerStatus
-
getVmId
-
setVmId
-
getVmPid
public int getVmPid() -
setVmPid
public void setVmPid(int vmPid) -
getVmName
-
setVmName
-
getType
-
setType
-
setCp
-
getCp
-
getCpString
-
hasName
public boolean hasName() -
toString
-
equals
-
hashCode
-
base64Serialize
- Throws:
IOException
-
base64Deserialize
static VmInfo base64Deserialize(String base64Representation) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
getBytemanCompanion
-
setBytemanCompanion
public BytemanCompanion setBytemanCompanion(boolean boot, int parentPort) throws AgentLoadException, IOException, AttachNotSupportedException, AgentInitializationException -
attachByteman
private int attachByteman(boolean boot) throws IOException, AgentLoadException, AttachNotSupportedException, AgentInitializationException -
findFreePort
- Throws:
IOException
-