public class Create
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static OpProxy |
newRO |
static OpMethod |
newROOpMethod |
static OpProxy |
newVM |
static OpMethod |
newVMOpMethod |
| Modifier | Constructor and Description |
|---|---|
private |
Create()
Just to prevent any confusion,
no need ever to instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
static RemoteRefs |
createInstance(java.lang.String cls,
java.lang.Object... args)
A common case of remote object creation:
create a new remote object on the same host.
|
static RemoteRefs |
createInstance(VM vm,
java.lang.String cls,
java.lang.Object... args)
The general case of VM creation:
create a new VM on the specified host.
|
static VM |
createVM()
A common case of VM creation: create a new VM on the same host.
|
static VM |
createVM(java.lang.String onHost)
The general case of VM creation:
create a new VM on the specified host.
|
static VM |
getThisVM()
Equivalent to JR's vm.thisvm.
|
public static OpMethod newVMOpMethod
public static OpMethod newROOpMethod
public static OpProxy newVM
public static OpProxy newRO
private Create()
public static VM createVM()
new vm();.
Invokes createVM(String) on createVM(name)
where name is the name of the host on which createVM
is executed.VM.public static VM createVM(java.lang.String onHost)
new vm() on "pc17";.onHost - the name of the host on which to create the new VM.VM.public static RemoteRefs createInstance(java.lang.String cls, java.lang.Object... args)
new remote X(args);.
Invokes createInstance(VM,String,Object...) on
createInstance(name,cls,args)
where name is the name of the host
on which createInstance
is executed.cls - the name of class to instantiate.
(N.B., the name is a String.)args - the arguments to cls's constructorRemoteRefs for the new remote object.public static RemoteRefs createInstance(VM vm, java.lang.String cls, java.lang.Object... args)
new remote X(args) on "pc17";.vm - the host on which to create the new instance.cls - the name of class to instantiate.
(N.B., the name is a String.)args - the arguments to cls's constructorRemoteRefs for the new remote object.public static VM getThisVM()