org.apache.geronimo.kernel.config
Class ConfigurationStatus

java.lang.Object
  extended by org.apache.geronimo.kernel.config.ConfigurationStatus

public class ConfigurationStatus
extends Object

Version:
$Rev: 1082076 $ $Date: 2011-03-16 15:19:59 +0800 (Wed, 16 Mar 2011) $

Constructor Summary
ConfigurationStatus(Artifact configId, Set<ConfigurationStatus> loadParents, Set<ConfigurationStatus> startParents)
           
 
Method Summary
 void destroy()
           
 Artifact getConfigurationId()
           
 LinkedHashSet<Artifact> getStartedChildren()
           
 boolean isLoaded()
           
 boolean isStarted()
           
 boolean isUserLoaded()
           
 boolean isUserStarted()
           
 LinkedHashSet<Artifact> load()
           
 LinkedHashSet<Artifact> reload()
           
 LinkedHashSet<Artifact> restart()
           
 LinkedHashSet<Artifact> start()
           
 LinkedHashSet<Artifact> stop(boolean gc)
          Stop this configuration and its children (if it's running) or do nothing (if it's not running).
 String toString()
           
 LinkedHashSet<Artifact> unload(boolean gc)
          Unload the configuration and all its children (if it's loaded), or do nothing (if it's not loaded).
 void upgrade(Artifact newId, Set<ConfigurationStatus> newLoadParents, Set<ConfigurationStatus> newStartParents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationStatus

public ConfigurationStatus(Artifact configId,
                           Set<ConfigurationStatus> loadParents,
                           Set<ConfigurationStatus> startParents)
Method Detail

destroy

public void destroy()

getConfigurationId

public Artifact getConfigurationId()

getStartedChildren

public LinkedHashSet<Artifact> getStartedChildren()

isLoaded

public boolean isLoaded()

isStarted

public boolean isStarted()

isUserLoaded

public boolean isUserLoaded()

isUserStarted

public boolean isUserStarted()

upgrade

public void upgrade(Artifact newId,
                    Set<ConfigurationStatus> newLoadParents,
                    Set<ConfigurationStatus> newStartParents)

load

public LinkedHashSet<Artifact> load()

start

public LinkedHashSet<Artifact> start()

stop

public LinkedHashSet<Artifact> stop(boolean gc)
Stop this configuration and its children (if it's running) or do nothing (if it's not running).

Parameters:
gc - whether to gc (??)
Returns:
list of Artifacts for stopped configurations

restart

public LinkedHashSet<Artifact> restart()

unload

public LinkedHashSet<Artifact> unload(boolean gc)
Unload the configuration and all its children (if it's loaded), or do nothing (if it's not loaded).

Parameters:
gc - whether to gc (??)
Returns:
artifacts for unloaded configurations

reload

public LinkedHashSet<Artifact> reload()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2013 The Apache Geronimo development community. All Rights Reserved.