org.exolab.jmscts.core.service
Class TestTerminatorService

java.lang.Object
  |
  +--org.exolab.core.service.Service
        |
        +--org.exolab.jmscts.core.service.TestTerminatorService
All Implemented Interfaces:
java.io.Serializable, org.exolab.core.service.Serviceable

public class TestTerminatorService
extends org.exolab.core.service.Service

This service enables a running compliance suite to be terminated.

This service is dependent on the RmiRegistryService. This must be initialised prior to starting this service

Version:
$Revision: 1.3 $ $Date: 2004/02/02 03:49:20 $
Author:
Tim Anderson
See Also:
Serialized Form

Field Summary
static java.lang.String NAME
          The service name
 
Constructor Summary
TestTerminatorService(AbstractTestRunner runner, int port)
          Construct an instance of the TestTerminatorService
 
Method Summary
 void start()
          Start the service
 void stop()
          Stop the service
 void terminate(boolean abort)
          Terminate the test
 
Methods inherited from class org.exolab.core.service.Service
getName, getState, restart, setState, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
The service name
Constructor Detail

TestTerminatorService

public TestTerminatorService(AbstractTestRunner runner,
                             int port)
Construct an instance of the TestTerminatorService
Parameters:
runner - the test runner
port - the RMI registry port
Method Detail

start

public void start()
           throws org.exolab.core.service.ServiceException
Start the service
Overrides:
start in class org.exolab.core.service.Service
Throws:
org.exolab.core.service.ServiceException - if the service can't be started

stop

public void stop()
          throws org.exolab.core.service.ServiceException
Stop the service
Overrides:
stop in class org.exolab.core.service.Service
Throws:
org.exolab.core.service.ServiceException - if the service can't be stopped

terminate

public void terminate(boolean abort)
Terminate the test
Parameters:
abort - if true abort the test and exit, else stop


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.