|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.insightful.splus.ClientUtilitiesImpl
public class ClientUtilitiesImpl
Implementation for ClientUtilities. Uses ClassUtilities methods to perform operations.
ClassUtilities,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ClientUtilitiesImpl()
Create an instance to expose remotely. |
|
ClientUtilitiesImpl(SplusSession session)
Create an instance to expose remotely (with SSL encryption of RMI). |
|
| Method Summary | |
|---|---|
void |
attachClassPath(String classPath)
Attach a new class path to the classloader. |
void |
attachClassPath(String[] paths)
Attach a set of new class paths to the classloader. |
boolean |
classExists(String className)
Test whether a class exists. |
boolean |
fieldExists(String className,
String fieldName)
Test whether a field exists. |
Object |
getStaticFieldValue(String className,
String fieldName)
Get a static field value from the client JVM. |
Object |
invokeStaticMethod(String className,
String methodName,
Class[] parameterTypes,
Object[] args)
Invoke a static method in the client JVM. |
boolean |
methodExists(String className,
String methodName,
Class[] parameterTypes)
Test whether a method exists. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientUtilitiesImpl()
throws RemoteException
RemoteException
public ClientUtilitiesImpl(SplusSession session)
throws RemoteException
RemoteException| Method Detail |
|---|
public Object getStaticFieldValue(String className,
String fieldName)
throws ClassNotFoundException,
NoSuchFieldException,
IllegalAccessException,
RemoteException
getStaticFieldValue in interface ClientUtilitiesclassName - The class containing the field of interest.fieldName - The field of interest.
ClassNotFoundException
NoSuchFieldException
IllegalAccessException
RemoteExceptionClass.getField(String name)
public Object invokeStaticMethod(String className,
String methodName,
Class[] parameterTypes,
Object[] args)
throws ClassNotFoundException,
NoSuchMethodException,
IllegalAccessException,
InvocationTargetException,
RemoteException
invokeStaticMethod in interface ClientUtilitiesclassName - The class containing the method to invoke.methodName - The method to invoke.parameterTypes - Array of Class objects matching the arguments
to the method. The class for a primitive argument such as
"double" is obtained from the wrapper class "Double" using the
static field "Double.TYPE".args - Array of arguments to the method. Primitive arguments
such as "double" must be wrapped in an object such as "Double".
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
RemoteExceptionMethod.invoke(Object obj, Object [] args)
public boolean classExists(String className)
throws RemoteException
classExists in interface ClientUtilitiesclassName - Class to find.
RemoteExceptionClassLoader.loadClass(String name)
public boolean fieldExists(String className,
String fieldName)
throws SecurityException,
RemoteException
fieldExists in interface ClientUtilitiesclassName - The class containing the field of interest.fieldName - The field of interest.
SecurityException
RemoteException
public boolean methodExists(String className,
String methodName,
Class[] parameterTypes)
throws RemoteException
methodExists in interface ClientUtilitiesclassName - The class containing the method.methodName - The method.parameterTypes - Array of Class objects matching the arguments
to the method. The class for a primitive argument such as
"double" is obtained from the wrapper class "Double" using the
static field "Double.TYPE".
RemoteException
public void attachClassPath(String classPath)
throws Exception,
RemoteException
attachClassPath in interface ClientUtilitiesclassPath - a jar file or a directory containing classes.
Exception
RemoteException
public void attachClassPath(String[] paths)
throws Exception,
RemoteException
attachClassPath in interface ClientUtilitiespaths - an array of jar files and directories containing classes.
Exception
RemoteException
|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||