org.mule.registry
Interface Entry

All Known Subinterfaces:
Assembly, Library, RegistryComponent, Unit
All Known Implementing Classes:
AbstractAssembly, AbstractEntry, AbstractLibrary, AbstractRegistryComponent, AbstractUnit

public interface Entry

Author:
Guillaume Nodet

Field Summary
static String INITIALIZED
          Value returned by getCurrentState() for a component in an initialised state.
static String RUNNING
          Value returned by getCurrentState() for a running component.
static String SHUTDOWN
          Value returned by getCurrentState() for a shutdown component.
static String STOPPED
          Value returned by getCurrentState() for a stopped component.
static String UNKNOWN
          Value returned by getCurrentState() for a component in an unknown state.
 
Method Summary
 String getCurrentState()
          Get the current state of this managed compononent.
 String getInstallRoot()
          Retrieves the installation directory.
 String getName()
          Name of this entry
 String getStateAtShutdown()
          Status before JBI was shutdown.
 void setCurrentState(String state)
           
 void setInstallRoot(String installRoot)
          Sets the installation directory.
 void setName(String name)
           
 void setStateAtShutdown(String state)
          Set the state before the server was shutdown.
 

Field Detail

SHUTDOWN

public static final String SHUTDOWN
Value returned by getCurrentState() for a shutdown component.

See Also:
Constant Field Values

STOPPED

public static final String STOPPED
Value returned by getCurrentState() for a stopped component.

See Also:
Constant Field Values

RUNNING

public static final String RUNNING
Value returned by getCurrentState() for a running component.

See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
Value returned by getCurrentState() for a component in an unknown state.

See Also:
Constant Field Values

INITIALIZED

public static final String INITIALIZED
Value returned by getCurrentState() for a component in an initialised state.

See Also:
Constant Field Values
Method Detail

getName

public String getName()
Name of this entry

Returns:

setName

public void setName(String name)

getInstallRoot

public String getInstallRoot()
Retrieves the installation directory.

Returns:
the installation directory

setInstallRoot

public void setInstallRoot(String installRoot)
Sets the installation directory.

Parameters:
installRoot - the installation directory

getCurrentState

public String getCurrentState()
Get the current state of this managed compononent.

Returns:
the current state of this managed component (must be one of the string constants defined by this interface)

getStateAtShutdown

public String getStateAtShutdown()
Status before JBI was shutdown.

Returns:

setStateAtShutdown

public void setStateAtShutdown(String state)
                        throws RegistryException
Set the state before the server was shutdown.

Parameters:
state -
Throws:
RegistryException

setCurrentState

public void setCurrentState(String state)
                     throws RegistryException
Throws:
RegistryException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.