Package org.apache.tuscany.sca.core.assembly

Examples of org.apache.tuscany.sca.core.assembly.ActivationException


        if (manualUrl != null) {
            // the required url has been specified manually
            newHost = manualUrl.getHost();
            newPort = manualUrl.getPort();
        } else {
            throw new ActivationException("domain uri can't be null");
        }
       
        // replace the old with the new
        urlString = urlString.replace(String.valueOf(originalPort), String.valueOf(newPort));         
        urlString = urlString.replace(originalHost, newHost);
View Full Code Here


                    compositeArtifacts.put(artifact.getURI(), (Composite)artifact.getModel());
                }
            }

        } else {
          throw new ActivationException("Contribution " + contributionURL + " not found");
        }             
    }
View Full Code Here

            // activate all of the composites just loaded
            for(Composite composite: contribution.getDeployables()) {
                nodeRuntime.getCompositeActivator().activate(composite);    
            }
        } else {
            throw new ActivationException("Contribution " + contributionURL + " not found");
        }             
    }
View Full Code Here

        if (contribution != null) {
            for(Composite composite: contribution.getDeployables()) {
                 nodeRuntime.getCompositeActivator().start(composite);
            }
        } else {
            throw new ActivationException("Contribution " + contributionURL+ " not started");
        }
    }
View Full Code Here

        if (contribution != null) {
            for(Composite composite: contribution.getDeployables()) {
                 nodeRuntime.getCompositeActivator().stop(composite);
            }
        } else {
            throw new ActivationException("Contribution " + contributionURL+ " not stopped");
        }
    }   
View Full Code Here

                contributionManager.addAllComposites(contributionURL);
                contributionManager.startAllComposites(contributionURL);
            }
            
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }
       
    }   
View Full Code Here

                    tmpURI = new URI(domainUri);
                    if (tmpURI.isAbsolute()){
                        domainUrl = tmpURI.toURL();
                    }
                } catch(Exception ex) {
                    throw new ActivationException("domain uri " +
                                                  domainUri +
                                                  "must be a valid url");
                }
               
                try {
                    tmpURI = new URI(nodeUri);
                    if (tmpURI.isAbsolute()){
                        nodeUrl = tmpURI.toURL();
                    }
                } catch(Exception ex) {
                    nodeUrl = null;
                }

                createManagementNode();
            }
        } catch(ActivationException ex) {
            throw ex;                       
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }
    }
View Full Code Here

                               
                            } catch(Exception ex) {
                                logger.log(Level.SEVERE, 
                                           "Can't connect to domain manager at: " +
                                           domainUrl);
                                throw new ActivationException(ex);
                            }
                        }                       
                    }
                       
                } else {
                    throw new ActivationException("Node management contribution " +
                                                  contributionURL +
                                                  " found but could not be loaded");
                }
            } else {
                throw new ActivationException("Node management contribution " +
                                              nodeCompositeName +
                                              " not found on the classpath");
            }
        } catch(ActivationException ex) {
            throw ex;                       
        } catch(Exception ex) {
            throw new ActivationException(ex);
        }
    }  
View Full Code Here

                domainManager.registerNode(domainUri, nodeUri);
            } catch(Exception ex) {
                logger.log(Level.SEVERE, 
                           "Can't connect to domain manager at: " +
                           domainUrl);
                throw new ActivationException(ex);
            }
        }
    }
View Full Code Here

                domainManager.removeNode(domainUri, nodeUri);
            } catch(Exception ex) {
                logger.log(Level.SEVERE, 
                        "Can't connect to domain manager at: " +
                        domainUrl);
                throw new ActivationException(ex);
            }
        }
    }   
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.assembly.ActivationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.