com.atlassian.bamboo.container
Interface Startable

All Known Subinterfaces:
BuildPersisterDecorator, Persister
All Known Implementing Classes:
AbstractStartable, BambooAgentStreamListener, CachedBuildPersisterDecorator, FileBasedPersister, XStreamBuildPersister

public interface Startable

This interface is used to denote container components that need to be started.

It contains the stop method as anything that needs to be started should also clean up when stopped.


Method Summary
 boolean isActive()
          Indicates whether this is currently active.
 void start()
          Start the component
 void stop()
          Stop the component and clean up any resources
 

Method Detail

start

void start()
           throws java.lang.Exception
Start the component

Throws:
java.lang.Exception - A generic failure

stop

void stop()
          throws java.lang.Exception
Stop the component and clean up any resources

Throws:
java.lang.Exception - A generic failure

isActive

boolean isActive()

Indicates whether this is currently active.

Returns:
true if this is active, false otherwise.


Copyright © 2011 Atlassian. All Rights Reserved.