|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucdavis.rj.VM.Create
public class Create
Methods for creating RJ virtual machines and RJ remote objects. (These interface to VM and rjvm, without exposing those details to the user.)
Constructor Summary | |
---|---|
private |
Create()
Just to prevent any confusion, no need ever to instantiate. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private Create()
Method Detail |
---|
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.
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.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.
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 constructorpublic static VM getThisVM()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |