|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.agentserver.java.JavaAgentCodeSegment
public class JavaAgentCodeSegment
Defines the layout of the code segment of an agent for this particular Agent Server and provides convenient access for the AgentRunner. Currently, the layout corresponds to a single Java jar file. The jar file may ship its own classes and/or may contain references to other jar files (through the manifest's 'class path' attribute). references to otue
| Field Summary | |
|---|---|
static int |
BUFSIZE
Buffer size for copying data around. |
| Constructor Summary | |
|---|---|
JavaAgentCodeSegment(byte[] codeSegment)
Parses and processes an agent's code segment. |
|
| Method Summary | |
|---|---|
void |
cleanUp()
|
java.net.URL |
getCodeBase()
Returns a URL for the codebase in the code segment. |
static java.util.jar.Manifest |
retrieveJarManifest(java.net.URL url)
Retrieves the manifest from a jar file pointed to by the given URL. |
static byte[] |
writeAgentCodeSegment(boolean shipcode,
java.net.URL codebaseURL)
Composes an agent's code segment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFSIZE
| Constructor Detail |
|---|
public JavaAgentCodeSegment(byte[] codeSegment)
throws JavaCodeSegmentException,
java.io.IOException
JavaCodeSegmentException - if codeSegment could not be parsed
java.io.IOException - if an error occurred writing a temporary jar file| Method Detail |
|---|
public static byte[] writeAgentCodeSegment(boolean shipcode,
java.net.URL codebaseURL)
throws java.io.IOException
codebaseURL - a URL pointing to a jar file containing the agent's codebase
java.io.IOException - if an error occurred reading the codebase or writing the code segmentpublic void cleanUp()
public java.net.URL getCodeBase()
public static java.util.jar.Manifest retrieveJarManifest(java.net.URL url)
throws java.io.IOException
url - a URL pointing to a jar file
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||