org.jboss.deployers.client.spi
Class IncompleteDeployments

java.lang.Object
  extended by org.jboss.deployers.client.spi.IncompleteDeployments
All Implemented Interfaces:
Serializable

public class IncompleteDeployments
extends Object
implements Serializable

IncompleteDeployments.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
IncompleteDeployments(Map<String,Throwable> deploymentsInError, Collection<String> deploymentsMissingDeployer, Map<String,Throwable> contextsInError, Map<String,Set<MissingDependency>> contextsMissingDependencies)
          Create a new IncompleteDeploymentException.
 
Method Summary
protected  void calculateContextsError()
          Calculate upfront context errors.
 Map<String,Throwable> getContextsInError()
          Get the contextsInError.
 String getContextsInErrorInfo()
          Get the contexts in error info.
 Map<String,Set<MissingDependency>> getContextsMissingDependencies()
          Get the contextsMissingDependencies.
 String getContextsMissingDependenciesInfo()
          Get the contexts missing dependecies info
 Map<String,Throwable> getDeploymentsInError()
          Get the deploymentsInError.
 String getDeploymentsInErrorInfo()
          Get the info about deployments in error.
 Collection<String> getDeploymentsMissingDeployer()
          Get the deploymentsMissingDeployer.
 String getDeploymentsMissingDeployerInfo()
          Get the info about missing deployers.
 boolean isIncomplete()
          Whether it is incomplete
 boolean isInvalidContext(String contextName)
          Whether context is responsible for incomplete deployment.
 boolean isInvalidDeployment(String deploymentName)
          Whether deployment unit is responsible for incomplete deployment.
protected  boolean matchComponentName(String componentName, Collection<String> strings)
          Search for componentName in strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncompleteDeployments

public IncompleteDeployments(Map<String,Throwable> deploymentsInError,
                             Collection<String> deploymentsMissingDeployer,
                             Map<String,Throwable> contextsInError,
                             Map<String,Set<MissingDependency>> contextsMissingDependencies)
Create a new IncompleteDeploymentException.

Parameters:
deploymentsInError - deployments in error
deploymentsMissingDeployer - deployments missing deployer
contextsInError - contexts in error
contextsMissingDependencies - contexts missing dependencies
Method Detail

isIncomplete

public boolean isIncomplete()
Whether it is incomplete

Returns:
true when incomplete

isInvalidDeployment

public boolean isInvalidDeployment(String deploymentName)
Whether deployment unit is responsible for incomplete deployment.

Parameters:
deploymentName - deployment unit name
Returns:
true when deployment unit is responsible

isInvalidContext

public boolean isInvalidContext(String contextName)
Whether context is responsible for incomplete deployment.

Parameters:
contextName - context's name
Returns:
true when context is responsible

getDeploymentsInErrorInfo

public String getDeploymentsInErrorInfo()
Get the info about deployments in error.

Returns:
string info

getDeploymentsMissingDeployerInfo

public String getDeploymentsMissingDeployerInfo()
Get the info about missing deployers.

Returns:
string info

calculateContextsError

protected void calculateContextsError()
Calculate upfront context errors.


getContextsInErrorInfo

public String getContextsInErrorInfo()
Get the contexts in error info.

Returns:
string info

getContextsMissingDependenciesInfo

public String getContextsMissingDependenciesInfo()
Get the contexts missing dependecies info

Returns:
the contexts missing dependency

matchComponentName

protected boolean matchComponentName(String componentName,
                                     Collection<String> strings)
Search for componentName in strings.

Parameters:
componentName - component's name
strings - collection of strings
Returns:
true if strings contains component name

getContextsInError

public Map<String,Throwable> getContextsInError()
Get the contextsInError.

Returns:
the contextsInError.

getContextsMissingDependencies

public Map<String,Set<MissingDependency>> getContextsMissingDependencies()
Get the contextsMissingDependencies.

Returns:
the contextsMissingDependencies.

getDeploymentsInError

public Map<String,Throwable> getDeploymentsInError()
Get the deploymentsInError.

Returns:
the deploymentsInError.

getDeploymentsMissingDeployer

public Collection<String> getDeploymentsMissingDeployer()
Get the deploymentsMissingDeployer.

Returns:
the deploymentsMissingDeployer.


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.