|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.pogamut.Client.BotLauncher
public class BotLauncher
Utilility for launching bots in various scenarios e.g. loading from jars.
| Constructor Summary | |
|---|---|
BotLauncher()
|
|
| Method Summary | |
|---|---|
static void |
launchRMI(Agent agent)
|
static Agent |
loadBot(java.lang.String className)
Creates agent instance from given FCN, tryes to load the agent by current context classloader. |
static Agent |
loadBot(java.lang.String className,
java.lang.ClassLoader cl)
Creates agent instance from given FCN and classloader. |
static java.lang.Class<Agent> |
loadBotClass(java.lang.String className)
Loads agent class by the context classloader. |
static java.lang.Class<Agent> |
loadBotClass(java.lang.String className,
java.lang.ClassLoader cl)
Loads agent class from given classloader. |
static java.lang.Class<Agent> |
loadBotClass(java.lang.String className,
java.lang.String classPath,
java.lang.ClassLoader parent)
Loads and bot from *.class or *.jar file. |
static java.lang.Class<Agent> |
loadBotClassFromPogamutJar(java.lang.String pathToJar)
Loads class from jar file with special Pogamut entry in it's manifest file. |
static Agent |
loadBotFromPogamutJar(java.lang.String pathToJar)
Creates agent instance from *.jar file with Bot-class manifest entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BotLauncher()
| Method Detail |
|---|
public static java.lang.Class<Agent> loadBotClass(java.lang.String className,
java.lang.ClassLoader cl)
throws BotLoadingException
BotLoadingException
public static java.lang.Class<Agent> loadBotClass(java.lang.String className)
throws BotLoadingException
BotLoadingException
public static Agent loadBot(java.lang.String className,
java.lang.ClassLoader cl)
throws BotLoadingException
className - cl -
BotLoadingException
public static Agent loadBot(java.lang.String className)
throws BotLoadingException
className -
BotLoadingException
public static Agent loadBotFromPogamutJar(java.lang.String pathToJar)
throws BotLoadingException
pathToJar -
BotLoadingException
public static java.lang.Class<Agent> loadBotClass(java.lang.String className,
java.lang.String classPath,
java.lang.ClassLoader parent)
throws BotLoadingException
className - Fully qualified name of class representing bot. eg cz.cuni.pogamut.client.KillerclassPath - Classpath to the class. eg. MyBot.jarparent - parent classloader of newly created URL classloader
java.lang.Exception - Class not found
BotLoadingException
public static java.lang.Class<Agent> loadBotClassFromPogamutJar(java.lang.String pathToJar)
throws BotLoadingException
pathToJar -
PogamutException
java.io.IOException
BotLoadingException
public static void launchRMI(Agent agent)
throws java.rmi.RemoteException,
java.rmi.AlreadyBoundException
java.rmi.RemoteException
java.rmi.AlreadyBoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||