org.exolab.jmscts.core.service
Class SnapshotService

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

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

This service enables the state of a running compliance suite to be captured.

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
SnapshotService(AbstractTestRunner runner, int port)
          Construct a new SnapshotService
 
Method Summary
 void snapshot(java.lang.String path)
          Snapshot the current test suite coverage
 void start()
          Start the service
 void stop()
          Stop the service
 
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

SnapshotService

public SnapshotService(AbstractTestRunner runner,
                       int port)
Construct a new SnapshotService
Parameters:
runner - the test runner
port - the RMI registry port
Method Detail

snapshot

public void snapshot(java.lang.String path)
              throws java.lang.Exception
Snapshot the current test suite coverage
Parameters:
path - the directory path to write the coverage report
Throws:
java.lang.Exception - if the report cannot be generated

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


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