org.jtoolkit.essence.app
Interface Runs

All Known Subinterfaces:
Cluster
All Known Implementing Classes:
CacheComponentBuilder, ClusterComponentBuilder

public interface Runs

This is an optional interface for components which need to started/stopped.

Author:
Peter Lawrey

Field Summary
static java.lang.String START
           
 
Method Summary
 void start()
          Start the component.
 void stop()
          Silently stop the component.
 

Field Detail

START

static final java.lang.String START
See Also:
Constant Field Values
Method Detail

start

void start()
           throws java.lang.IllegalStateException,
                  java.lang.IllegalArgumentException
Start the component.

Throws:
java.lang.IllegalArgumentException - if the component is configured with an invalid value.
java.lang.IllegalStateException - if the component could not be start due to a configuration error.

stop

void stop()
Silently stop the component.



Copyright © Peter Lawrey. All Rights Reserved.