Examples of RemoteProject


Examples of jSimMacs.data.RemoteProject

    SSHDataHandler handler = null;
    if (project.getLocation() == ProjectLocation.LOCALE) {
      projectFile = workspaceDir + project.getPathName()
          + JSimConstants.PROJECTCONFFILE;
    } else {
      RemoteProject rmProject = (RemoteProject) project;
      handler = (SSHDataHandler) rmProject.getDataHandler();
      projectFile = handler
          .createTempPath(rmProject.getPath() + rmProject.getName()
              + "/" + JSimConstants.PROJECTCONFFILE);
      projectFile += JSimConstants.PROJECTCONFFILE;
    }
    IXMLWriter projectWriter = new ProjectSettingSAXWriter(project);
    try {
View Full Code Here

Examples of jSimMacs.data.RemoteProject

   */
  @Override
  public void startElement(String uri, String localName, String name,
      Attributes attributes) throws SAXException {
    if (name.equalsIgnoreCase(XMLConstants.REMOTEPROJECT)) {
      remoteProject = new RemoteProject(attributes.getValue(XMLConstants.REMOTEPROJECTNAME));
    }
    if (name.equalsIgnoreCase(XMLConstants.CONNECTIONELEMENT)) {
      remoteProject.setHostname(attributes.getValue(XMLConstants.REMOTEHOSTNAME));
      remoteProject.setPort(Integer.parseInt(attributes.getValue(XMLConstants.REMOTEPORT)));
      remoteProject.setUsername(attributes.getValue(XMLConstants.REMOTEUSER));
View Full Code Here

Examples of jSimMacs.data.RemoteProject

    initDialog();
  }

  private void initData() {
    if (project instanceof RemoteProject) {
      RemoteProject rProject = (RemoteProject) project;
      sshHostname.setText(rProject.getHostname());
      sshPort.setText(Integer.toString(rProject.getPort()));
      sshUser.setText(rProject.getUsername());
      sshPath.setText(rProject.getPath());
      sshMpiLibary.setText(rProject.getMpiLib());
      sshCertificate.setSelected(rProject.isUseCertificate());
    }
    //mpiSupport.setSelected(project.isUseMPILib());
  }
View Full Code Here

Examples of jSimMacs.data.RemoteProject

   
  }

  private void saveData() {
    if (project instanceof RemoteProject) {
      RemoteProject rProject = (RemoteProject) project;
      rProject.setHostname(sshHostname.getText());
      rProject.setPort(Integer.parseInt(sshPort.getText()));
      rProject.setUsername(sshUser.getText());
      rProject.setPath(sshPath.getText());
      rProject.setMpiLib(sshMpiLibary.getText());
      rProject.setUseCertificate(sshCertificate.isSelected());
    }
   
  }
View Full Code Here

Examples of org.rhq.plugins.jira.soapclient.jira.RemoteProject

        JiraClient client = context.getParentResourceComponent().getClient();

        Map<String, RemoteProject> projectMap = client.getProjectMap();
        for (String key : projectMap.keySet()) {
            RemoteProject project = projectMap.get(key);

            Configuration c = new Configuration();
            c.put( new PropertySimple("projectKey", key));
            c.put( new PropertySimple("projectId", project.getId()));
            DiscoveredResourceDetails detail =
                    new DiscoveredResourceDetails(
                            context.getResourceType(),
                            project.getKey(),
                            project.getName(),
                            null,
                            project.getDescription(),
                            c,
                            null);

            details.add(detail);
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.