| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.kernel.config.LifecycleResults
public class LifecycleResults
This class contains the results of a lifecycle operation on the configuation manager.
| Constructor Summary | |
|---|---|
LifecycleResults()
 | 
|
| Method Summary | |
|---|---|
 void | 
addFailed(Artifact configurationId,
                   Throwable cause)
Adds a configuration and associated causal exception to this result.  | 
 void | 
addLoaded(Artifact configurationId)
Adds a configuration the set of loaded configurations.  | 
 void | 
addStarted(Artifact configurationId)
Adds a configuration the set of started configurations.  | 
 void | 
addStopped(Artifact configurationId)
Adds a configuration the set of stopped configurations.  | 
 void | 
addUnloaded(Artifact configurationId)
Adds a configuration the set of unloaded configurations.  | 
 Map | 
getFailed()
Gets the configuration identifiers (Artifact) of the configurations that failed the operation and threw an exception.  | 
 Throwable | 
getFailedCause(Artifact configurationId)
Gets the exception that caused the operation on the specified configuration to fail.  | 
 Set | 
getLoaded()
Gets the configuration identifiers (Artifact) of the configurations loaded.  | 
 Set | 
getStarted()
Gets the configuration identifiers (Artifact) of the configurations started.  | 
 Set | 
getStopped()
Gets the configuration identifiers (Artifact) of the configurations stopped.  | 
 Set | 
getUnloaded()
Gets the configuration identifiers (Artifact) of the configurations unloaded.  | 
 void | 
setFailed(Map failed)
Clears the existing failed map and add alls the specified configurations to the map  | 
 void | 
setLoaded(Set loaded)
Clears the existing loaded set and add alls the specified configurations to the set  | 
 void | 
setStarted(Set started)
Clears the existing started set and add alls the specified configurations to the set  | 
 void | 
setStopped(Set stopped)
Clears the existing stopped set and add alls the specified configurations to the set  | 
 void | 
setUnloaded(Set unloaded)
Clears the existing unloaded set and add alls the specified configurations to the set  | 
 boolean | 
wasFailed(Artifact configurationId)
Was the specified configuration failed the operation and threw an exception.  | 
 boolean | 
wasLoaded(Artifact configurationId)
Checks whether the specified configuration was loaded.  | 
 boolean | 
wasStarted(Artifact configurationId)
Checks whether the specified configuration was started.  | 
 boolean | 
wasStopped(Artifact configurationId)
Checks whether the specified configuration was stopped.  | 
 boolean | 
wasUnloaded(Artifact configurationId)
Checks whether the specified configuration was unloaded.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LifecycleResults()
| Method Detail | 
|---|
public boolean wasLoaded(Artifact configurationId)
configurationId - the configuration identifier, which must be fully
                        resolved (isResolved() == true)
public Set getLoaded()
public void addLoaded(Artifact configurationId)
configurationId - the configuration identifiers (Artifact)public void setLoaded(Set loaded)
loaded - the configuration identifiers (Artifact)public boolean wasUnloaded(Artifact configurationId)
configurationId - the configuration identifier, which must be fully
                        resolved (isResolved() == true)
public Set getUnloaded()
public void addUnloaded(Artifact configurationId)
configurationId - the configuration identifiers (Artifact)public void setUnloaded(Set unloaded)
unloaded - the configuration identifiers (Artifact)public boolean wasStarted(Artifact configurationId)
configurationId - the configuration identifier, which must be fully
                        resolved (isResolved() == true)
public Set getStarted()
public void addStarted(Artifact configurationId)
configurationId - the configuration identifiers (Artifact)public void setStarted(Set started)
started - the configuration identifiers (Artifact)public boolean wasStopped(Artifact configurationId)
configurationId - the configuration identifier, which must be fully
                        resolved (isResolved() == true)
public Set getStopped()
public void addStopped(Artifact configurationId)
configurationId - the configuration identifiers (Artifact)public void setStopped(Set stopped)
stopped - the configuration identifiers (Artifact)public boolean wasFailed(Artifact configurationId)
configurationId - the configuration identifier.  May be a partial
                        ID, in which case will check whether any
                        matching conifguration failed.
public Throwable getFailedCause(Artifact configurationId)
public Map getFailed()
public void addFailed(Artifact configurationId,
                      Throwable cause)
configurationId - the configuration identifiers (Artifact)cause - the exception that caused the operation on the specified configuration to failpublic void setFailed(Map failed)
failed - a map from configuration identifier (Artifact) to causal exception
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||