Examples of DomainModel


Examples of org.apache.qpid.management.domain.model.DomainModel

     * @param connectionData the broker connection data (host, port, etc...)
     */
    ManagementClient(UUID brokerId,BrokerConnectionData connectionData)
    {
        _service = new QpidService(brokerId);
        _domainModel = new DomainModel(brokerId);
        _managementQueueName = Configuration.getInstance().getManagementQueueName();
        _methodReplyQueueName = Configuration.getInstance().getMethodReplyQueueName();
    }
View Full Code Here

Examples of org.apache.qpid.management.domain.model.DomainModel

     */
    ManagementClient(UUID brokerId,BrokerConnectionData connectionData)
    {
      _connectionData = connectionData;
        _service = new QpidService(brokerId);
        _domainModel = new DomainModel(brokerId);
        _managementQueueName = Configuration.getInstance().getManagementQueueName();
        _methodReplyQueueName = Configuration.getInstance().getMethodReplyQueueName();
    }
View Full Code Here

Examples of org.apache.qpid.management.domain.model.DomainModel

     */
    ManagementClient(UUID brokerId,BrokerConnectionData connectionData)
    {
      _connectionData = connectionData;
        _service = new QpidService(brokerId);
        _domainModel = new DomainModel(brokerId);
        _managementQueueName = Configuration.getInstance().getManagementQueueName();
        _methodReplyQueueName = Configuration.getInstance().getMethodReplyQueueName();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.model.DomainModel

    // DomainManagementService methods
   
    public DomainInfo getDomainDescription(){
       
        DomainInfo domainInfo = new DomainInfoImpl();
        DomainModel domain =  domainSPI.getDomainModel();
       
        domainInfo.setDomainURI(domain.getDomainURI());
        domainInfo.setDomainURL(domain.getDomainURL());
        domainInfo.getNodes().addAll(domain.getNodes().keySet());
        domainInfo.getContributions().addAll(domain.getContributions().keySet());
        domainInfo.getDeployedComposites().addAll(domain.getDeployedComposites().keySet());
       
        return domainInfo;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.model.DomainModel

    }
   
    public NodeInfo getNodeDescription(String nodeURI){
       
        NodeInfo nodeInfo = new NodeInfoImpl();
        DomainModel domain =  domainSPI.getDomainModel();
        NodeModel node = domain.getNodes().get(nodeURI);
       
        nodeInfo.setNodeURI(nodeURI);
        nodeInfo.setNodeURL(node.getNodeURL());
        nodeInfo.getContributions().addAll(node.getContributions().keySet());
        nodeInfo.getDeployedComposites().addAll(node.getDeployedComposites().keySet());
View Full Code Here

Examples of org.dmlite.model.DomainModel

   *            specific model configuration file path
   */
  public PersistentModel(String modelCode, String dmLiteModelConfigFilePath,
      String reusableModelConfigFilePath,
      String specificModelConfigFilePath) {
    domainModel = new DomainModel(modelCode, dmLiteModelConfigFilePath,
        reusableModelConfigFilePath, specificModelConfigFilePath);
    DomainModel dm = (DomainModel) domainModel;
    dm.addObserver(this);
    ModelConfig modelConfig = domainModel.getModelConfig();
    if (modelConfig.isPersistent()) {
      createPersistentEntries();
    }
  }
View Full Code Here

Examples of org.dmlite.model.DomainModel

      throw new ActionException(e.getMessage(), this);
    }
    if (executed) {
      setStatus("executed");
      if (getTransaction() == null) {
        DomainModel domainModel = (DomainModel) getSession()
            .getDomainModel();
        domainModel.notifyObservers(this);
      }
    }
    return executed;
  }
View Full Code Here

Examples of org.dmlite.model.DomainModel

      throw new ActionException(e.getMessage(), this);
    }
    if (undone) {
      setStatus("undone");
      if (getTransaction() == null) {
        DomainModel domainModel = (DomainModel) getSession()
            .getDomainModel();
        domainModel.notifyObservers(this);
      }
    }
    return undone;
  }
View Full Code Here

Examples of org.dmlite.model.DomainModel

   * Executes the transaction.
   *
   * @return <code>true</code> if executed
   */
  public boolean execute() throws ActionException {
    DomainModel domainModel = (DomainModel) getSession().getDomainModel();
    if (!domainModel.isSession()) {
      String error = "The domain model is not configured for transactions.";
      throw new ActionException(error, this);
    } else if (getSession() == null) {
      String error = "Transaction must be within a session.";
      throw new ActionException(error, this);
    }
    boolean executed = actions.executeAll();
    if (executed) {
      setStatus("executed");
      domainModel.notifyObservers(this);
    } else {
      actions.undoAll();
    }
    return executed;
  }
View Full Code Here

Examples of org.dmlite.model.DomainModel

      throw new ActionException(error, this);
    }
    boolean undone = actions.undoAll();
    if (undone) {
      setStatus("undone");
      DomainModel domainModel = (DomainModel) getSession()
          .getDomainModel();
      domainModel.notifyObservers(this);
    } else {
      actions.executeAll();
    }
    return undone;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.