org.mule.registry.impl
Class AbstractEntry

java.lang.Object
  extended byorg.mule.registry.impl.AbstractEntry
All Implemented Interfaces:
Entry, Serializable
Direct Known Subclasses:
AbstractAssembly, AbstractLibrary, AbstractRegistryComponent, AbstractUnit

public abstract class AbstractEntry
extends Object
implements Entry, Serializable

Author:
Guillaume Nodet
See Also:
Serialized Form

Field Summary
protected  String currentState
           
protected  String installRoot
           
protected  String name
           
protected  Registry registry
           
protected  String stateAtShutdown
           
 
Fields inherited from interface org.mule.registry.Entry
INITIALIZED, RUNNING, SHUTDOWN, STOPPED, UNKNOWN
 
Constructor Summary
protected AbstractEntry(Registry registry)
           
 
Method Summary
protected  void checkDescriptor()
           
 String getCurrentState()
          Get the current state of this managed compononent.
 String getInstallRoot()
          Retrieves the installation directory.
 String getName()
          Name of this entry
 Registry getRegistry()
           
 String getStateAtShutdown()
          Status before JBI was shutdown.
protected  void readObject(ObjectInputStream in)
           
 void setCurrentState(String currentState)
           
 void setInstallRoot(String installRoot)
          Sets the installation directory.
 void setName(String name)
           
 void setRegistry(Registry registry)
           
 void setStateAtShutdown(String statusAtShutdown)
          Set the state before the server was shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentState

protected transient String currentState

name

protected String name

installRoot

protected String installRoot

stateAtShutdown

protected String stateAtShutdown

registry

protected transient Registry registry
Constructor Detail

AbstractEntry

protected AbstractEntry(Registry registry)
Method Detail

readObject

protected void readObject(ObjectInputStream in)
                   throws IOException,
                          ClassNotFoundException
Throws:
IOException
ClassNotFoundException

getName

public String getName()
Description copied from interface: Entry
Name of this entry

Specified by:
getName in interface Entry
Returns:

getInstallRoot

public String getInstallRoot()
Description copied from interface: Entry
Retrieves the installation directory.

Specified by:
getInstallRoot in interface Entry
Returns:
the installation directory

getCurrentState

public String getCurrentState()
Description copied from interface: Entry
Get the current state of this managed compononent.

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

getStateAtShutdown

public String getStateAtShutdown()
Description copied from interface: Entry
Status before JBI was shutdown.

Specified by:
getStateAtShutdown in interface Entry
Returns:

setCurrentState

public void setCurrentState(String currentState)
                     throws RegistryException
Specified by:
setCurrentState in interface Entry
Throws:
RegistryException

setInstallRoot

public void setInstallRoot(String installRoot)
Description copied from interface: Entry
Sets the installation directory.

Specified by:
setInstallRoot in interface Entry
Parameters:
installRoot - the installation directory

setName

public void setName(String name)
Specified by:
setName in interface Entry

setStateAtShutdown

public void setStateAtShutdown(String statusAtShutdown)
Description copied from interface: Entry
Set the state before the server was shutdown.

Specified by:
setStateAtShutdown in interface Entry
Parameters:
statusAtShutdown -

getRegistry

public Registry getRegistry()

setRegistry

public void setRegistry(Registry registry)

checkDescriptor

protected void checkDescriptor()
                        throws RegistryException
Throws:
RegistryException


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