classUtils.loaders
Class ByteCodeContainer

java.lang.Object
  extended by java.lang.ClassLoader
      extended by classUtils.loaders.ByteCodeContainer
All Implemented Interfaces:
java.io.Serializable

public class ByteCodeContainer
extends java.lang.ClassLoader
implements java.io.Serializable

Send the ByteCodeContainer to a remote JVM. It uses the RCL to define a new class and compute an answer. Computation servers need these things to be sent by the computation clients.

See Also:
Serialized Form

Constructor Summary
ByteCodeContainer(byte[] b)
           
ByteCodeContainer(java.lang.Class c)
           
ByteCodeContainer(java.lang.String cn, byte[] b)
           
 
Method Summary
 java.io.Serializable compute()
           
 java.lang.Class getLoadedClass()
           
static ByteCodeContainer getLoader(ComputableObject o)
           
 void loadIt()
           
static void main(java.lang.String[] args)
           
static void print(java.lang.Object[] o)
           
 void reload()
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCodeContainer

public ByteCodeContainer(java.lang.Class c)

ByteCodeContainer

public ByteCodeContainer(java.lang.String cn,
                         byte[] b)

ByteCodeContainer

public ByteCodeContainer(byte[] b)
Method Detail

getLoader

public static ByteCodeContainer getLoader(ComputableObject o)

loadIt

public void loadIt()

compute

public java.io.Serializable compute()
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

reload

public void reload()

getLoadedClass

public java.lang.Class getLoadedClass()

main

public static void main(java.lang.String[] args)

print

public static void print(java.lang.Object[] o)