org.apache.avalon.merlin
Interface Kernel

All Superinterfaces:
KernelController
All Known Implementing Classes:
DefaultKernel

public interface Kernel
extends KernelController

A Kernel is the root of a containment solution. This interfaces defines the contract for any kernel implementation covering management aspects and service resolution aspects.

Version:
$Revision: 1.5 $ $Date: 2004/02/10 16:31:16 $
Author:
Avalon Development Team

Field Summary
static int ASSEMBLY
           
static int DECOMMISSIONING
           
static int DEPLOYMENT
           
static int DISSASSEMBLY
           
static int INITIALIZED
           
static int INITIALIZING
           
static int STARTED
           
static int STARTING
           
static int STOPPED
           
static int STOPPING
           
 
Method Summary
 void addKernelEventListener(KernelEventListener listener)
          Add a kernel listener.
 ContainmentModel getModel()
          Return the root containment model.
 int getState()
          Return the current state of the kernel.
 DeploymentModel locate(String path)
          Return a model matching the supplied path.
 void removeKernelEventListener(KernelEventListener listener)
          Remove a kernel listener.
 
Methods inherited from interface org.apache.avalon.merlin.KernelController
shutdown, startup
 

Field Detail

INITIALIZING

public static final int INITIALIZING
See Also:
Constant Field Values

INITIALIZED

public static final int INITIALIZED
See Also:
Constant Field Values

STARTING

public static final int STARTING
See Also:
Constant Field Values

ASSEMBLY

public static final int ASSEMBLY
See Also:
Constant Field Values

DEPLOYMENT

public static final int DEPLOYMENT
See Also:
Constant Field Values

STARTED

public static final int STARTED
See Also:
Constant Field Values

STOPPING

public static final int STOPPING
See Also:
Constant Field Values

DECOMMISSIONING

public static final int DECOMMISSIONING
See Also:
Constant Field Values

DISSASSEMBLY

public static final int DISSASSEMBLY
See Also:
Constant Field Values

STOPPED

public static final int STOPPED
See Also:
Constant Field Values
Method Detail

addKernelEventListener

public void addKernelEventListener(KernelEventListener listener)
Add a kernel listener.

Parameters:
listener - the kernel listener to be added

removeKernelEventListener

public void removeKernelEventListener(KernelEventListener listener)
Remove a kernel listener.

Parameters:
listener - the kernel listener to be removed

getModel

public ContainmentModel getModel()
Return the root containment model.

Returns:
the root model

locate

public DeploymentModel locate(String path)
Return a model matching the supplied path.

Returns:
the model

getState

public int getState()
Return the current state of the kernel.

Returns:
the kernel state


Copyright © The Apache Software Foundation. All Rights Reserved.