Methods Summary |
---|
private com.sun.appserv.management.client.AppserverConnectionSource | create(java.lang.String protocol)
return( new AppserverConnectionSource( protocol, "localhost", 9999, "admin", "admin123", null) );
|
public static com.sun.enterprise.management.Capabilities | getCapabilities()
return getOfflineCapableCapabilities( false );
|
private static void | testConnect(java.lang.String host, int port, java.lang.String protocol, java.lang.String user, java.lang.String password)
final AppserverConnectionSource source =
new AppserverConnectionSource( protocol, host, port, user, password, null);
source.getMBeanServerConnection( true );
|
public void | testConnect()
final String host = (String)getEnvValue( "HOST" );
final String port = (String)getEnvValue( "PORT" );
final String protocol = (String)getEnvValue( "PROTOCOL" );
final String user = (String)getEnvValue( "USER" );
final String password = (String)getEnvValue( "PASSWORD" );
if ( host == null || port == null || protocol == null ||
user == null || password == null ||
! AppserverConnectionSource.isSupportedProtocol( protocol ) )
{
trace( "AppserverConnectionSourceTest: skipped connect test; missing config:" +
"host = " + host +
", port = " + port +
", protocol = " + protocol +
", user = " + user +
", password = " + password );
}
else
{
testConnect( host, new Integer( port ).intValue(), protocol, user, password );
}
|
public void | testCreateIllegal()
try
{
create( "jmxmp" );
}
catch( IllegalArgumentException e )
{
// good
}
|
public void | testCreateRMI()
create( AppserverConnectionSource.PROTOCOL_RMI );
|
public void | testCreateS1ASHTTP()
create( AppserverConnectionSource.PROTOCOL_HTTP );
|
public void | testToString()
create( AppserverConnectionSource.PROTOCOL_RMI ).toString();
create( AppserverConnectionSource.PROTOCOL_HTTP ).toString();
|