Package org.jrd.backend.data
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 long
private VmInfo.Type
private VmDecompilerStatus
private String
private String
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
attachByteman
(boolean boot) (package private) static VmInfo
base64Deserialize
(String base64Representation) boolean
static int
getCp()
getType()
getVmId()
int
getVmPid()
int
hashCode()
boolean
hasName()
void
void
setBytemanCompanion
(boolean boot, int parentPort) void
void
setType
(VmInfo.Type local) void
setVmDecompilerStatus
(VmDecompilerStatus vmDecompilerStatus) void
void
void
setVmPid
(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
public int hashCode() -
base64Serialize
- Throws:
IOException
-
base64Deserialize
static VmInfo base64Deserialize(String base64Representation) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-
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
-