org.codehaus.cargo.container.geronimo.internal
Class GeronimoUtils

java.lang.Object
  extended by org.codehaus.cargo.container.geronimo.internal.GeronimoUtils

public class GeronimoUtils
extends java.lang.Object

Various utility methods such as checking is Geronimo is started.

Version:
$Id: GeronimoUtils.java 976 2006-03-30 11:09:22Z vmassol $

Constructor Summary
GeronimoUtils()
           
 
Method Summary
 java.lang.ClassLoader createGeronimoURLClassloader(java.io.File geronimoHomeDir)
           
 boolean isGeronimoStarted(java.lang.String host, java.lang.String rmiPort, java.lang.String username, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeronimoUtils

public GeronimoUtils()
Method Detail

createGeronimoURLClassloader

public java.lang.ClassLoader createGeronimoURLClassloader(java.io.File geronimoHomeDir)
Parameters:
geronimoHomeDir - the geronimo home dir location
Returns:
a URL classloader containing all JARs located in GERONIMO_HOME/lib.

isGeronimoStarted

public boolean isGeronimoStarted(java.lang.String host,
                                 java.lang.String rmiPort,
                                 java.lang.String username,
                                 java.lang.String password)
Parameters:
host - the host where Geronimo is executing
rmiPort - the RMI port to use to connect to the executing Geronimo server
username - the username to authenticate against the executing Geronimo Server
password - the password to authenticate against the executing Geronimo Server
Returns:
true if Geronimo is fully started or false otherwise


Copyright © 2004-2010 Codehaus. All Rights Reserved.