| java.lang.Object org.sape.carbon.core.component.test.LongStartComponentImpl
LongStartComponentImpl | public class LongStartComponentImpl implements LongStartComponent,Startable(Code) | | This component is used in the ComponentKeeperTest. The component that
uses this class as its functional implementation is
ComponentKeeperTest.LONG_START_COMPONENT . The purpose
of this component is to take a long time to start.
Copyright 2002 Sapient
See Also: org.sape.carbon.core.component.test.ComponentKeeperTest since: carbon 1.0 author: Douglas Voet, Febuary 2002 version: $Revision: 1.9 $($Author: dvoet $ / $Date: 2003/05/05 21:21:15 $) |
Method Summary | |
public void | start() Start the component. | public void | stop() Stop the component. |
start | public void start() throws InterruptedException(Code) | | Start the component. On return, the container will begin fowarding
requests to the component. This may be an opportunity to dispatch
worker threads.
This implementation notifies the test harness that is waiting on
ComponentKeeperTest.TEST_LOCK that it has enterred its startup
method, then procedes to wait on ComponentKeeperTest.TEST_LOCK until
notifed by the test harness
throws: LifecycleException - |
stop | public void stop()(Code) | | Stop the component. Prior to entry, the container will cease forwarding
requests for service to the component. This is an opportunity to cleanly
complete or abort any outstanding work. For example, a set of worker
threads could be killed off, or a queue set to drain.
throws: LifecycleException - |
|
|