com.sun.faban.harness.engine
Interface J2eeService


Deprecated.

@Deprecated
public interface J2eeService

This abstract class is extended by Application Server Services.

Author:
Ramesh Ramachandran

Method Summary
 void clearLogs(String serverMachine, String[] instanceHomes)
          Deprecated. Clear log files.
 void kill()
          Deprecated. Kill the all agents associated with this service.
 boolean restartServer(String serverMachine, String[] instanceHomes, boolean force)
          Deprecated. Start/restart server.
 void setConfig(String serverMachine, String[] instanceHomes, Properties params)
          Deprecated. Set server configuration parameters.
 void setup(Run r, String[] serverMachines, String[] serverHomes, List instanceArray, List logsArray)
          Deprecated. Setup Service and agents.
 boolean stopServer(String serverMachine, String[] instanceHomes)
          Deprecated. Stop Server.
 void xferLogs(String serverMachine, String[] instanceHomes)
          Deprecated. Transfer log files.
 

Method Detail

setup

void setup(Run r,
           String[] serverMachines,
           String[] serverHomes,
           List instanceArray,
           List logsArray)
Deprecated. 
Setup Service and agents. The instanceArray vector should contain array of instance dirs and logArray should contain array of log files for the corresponging instances.

Parameters:
r - The run
serverMachines - The server machines to start the service
serverHomes - The server homes to start the service
instanceArray - Array of instance directories
logsArray - The array of log files

setConfig

void setConfig(String serverMachine,
               String[] instanceHomes,
               Properties params)
Deprecated. 
Set server configuration parameters. If serverMachine is null then config will be set for all instances in all servers. If instanceHomes is null then config will be set for all instances in the serverMachine.

Parameters:
serverMachine - The target system
instanceHomes - The instance home directories
params - The server configuration parameters

restartServer

boolean restartServer(String serverMachine,
                      String[] instanceHomes,
                      boolean force)
Deprecated. 
Start/restart server. If serverMachine is null then restart all instances in all servers. If instanceHomes is null then restart all instances in the serverMachine boolean force if true the instances will be restarted even if there is no change in the config from the last start.

Parameters:
serverMachine - The target system
instanceHomes - The instance home directories
force - Whether to force the restart or not
Returns:
If the restart succeeded

stopServer

boolean stopServer(String serverMachine,
                   String[] instanceHomes)
Deprecated. 
Stop Server. If serverMachine is null then stop all instances in all servers. If instanceHomes is null then stop all instances in the serverMachine.

Parameters:
serverMachine - The target system
instanceHomes - The instance home directories
Returns:
If the stop succeeded

xferLogs

void xferLogs(String serverMachine,
              String[] instanceHomes)
Deprecated. 
Transfer log files. If serverMachine is null then transfer logs of all instances in all servers. If instanceHomes is null then transfer logs of all instances in the serverMachine.

Parameters:
serverMachine - The target system
instanceHomes - The instance home directories

clearLogs

void clearLogs(String serverMachine,
               String[] instanceHomes)
Deprecated. 
Clear log files. If serverMachine is null then clear all instances in all servers. If instanceHomes is null then clear all instances in the serverMachine.

Parameters:
serverMachine - The target system
instanceHomes - The instance home directories

kill

void kill()
Deprecated. 
Kill the all agents associated with this service. The App server agents will stop the app server instances.