|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Client
A Java object representation of a client in the cluster.
| Method Summary | ||
|---|---|---|
|
instantiate(String className,
Class[] cstrArgTypes,
Object[] cstrArgs)
Instantiates a class using an internal instrumentation capable class loader. |
|
void |
shutdown()
Shuts down this client reference. |
|
|
staticFactoryMethod(String className,
String methodName,
Class[] argTypes,
Object[] args)
Invokes a static method on a class loaded using an internal instrumentation capable class loader. |
|
| Method Detail |
|---|
<T> T instantiate(String className,
Class[] cstrArgTypes,
Object[] cstrArgs)
throws Exception
Class loaded through an instrumentation capable loader can interact directly through class scoped linkage with the toolkit API.
T - a public java super-type or interface of classNameclassName - concrete class to instantiatecstrArgTypes - array of constructor argument typescstrArgs - array of constructor arguments
Exception - if the class could not be loaded or instantiated
<T> T staticFactoryMethod(String className,
String methodName,
Class[] argTypes,
Object[] args)
throws Exception
T - public java super-type or interface of the return typeclassName - concrete class through which to call the methodmethodName - name of the method to invokeargTypes - array of method argument typesargs - array of method arguments
Exception - if the class could not be loader or the method could not be calledinstantiate(String, Class[], Object[])void shutdown()
Once all users of a client have called shutdown on a client instance, the client will terminate it's connections to the cluster and attempt to free any associated resources.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||