Package org.apache.airavata.schemas.gfac

Examples of org.apache.airavata.schemas.gfac.UnicoreHostType


  }

  @Override
  public void execute(JobExecutionContext jobExecutionContext)
      throws GFacProviderException {
    UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription().getType();
       
        String factoryUrl = host.getUnicoreHostAddressArray()[0];

        EndpointReferenceType eprt = EndpointReferenceType.Factory.newInstance();
        eprt.addNewAddress().setStringValue(factoryUrl);

        CreateActivityDocument cad = CreateActivityDocument.Factory
View Full Code Here


            throw new ProviderException(e.getMessage(), e,invocationContext);
        }
    }

    public void setupEnvironment(InvocationContext invocationContext) throws ProviderException {
        UnicoreHostType host = (UnicoreHostType) invocationContext.getExecutionDescription().getHost().getType();

        log.debug("Searching for Gate Keeper");


        String tmp[] = host.getUnicoreHostAddressArray();
        if (tmp == null || tmp.length == 0) {
            unicoreHost = host.getHostAddress();
        }else{
            /*
             * TODO: algorithm for correct gatekeeper selection
             */
            unicoreHost = tmp[0];
View Full Code Here

  }


  public void execute(JobExecutionContext jobExecutionContext)
      throws GFacProviderException {
    UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription().getType();
       
        String factoryUrl = host.getUnicoreBESEndPointArray()[0];

        EndpointReferenceType eprt = EndpointReferenceType.Factory.newInstance();
        eprt.addNewAddress().setStringValue(factoryUrl);

        CreateActivityDocument cad = CreateActivityDocument.Factory
View Full Code Here

  }


  public void execute(JobExecutionContext jobExecutionContext)
      throws GFacProviderException {
    UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription().getType();
       
        String factoryUrl = host.getUnicoreBESEndPointArray()[0];

        EndpointReferenceType eprt = EndpointReferenceType.Factory.newInstance();
        eprt.addNewAddress().setStringValue(factoryUrl);

        CreateActivityDocument cad = CreateActivityDocument.Factory
View Full Code Here

    }


  public void execute(JobExecutionContext jobExecutionContext)
      throws GFacProviderException {
        UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription()
                .getType();

        String factoryUrl = host.getUnicoreBESEndPointArray()[0];

        EndpointReferenceType eprt = EndpointReferenceType.Factory.newInstance();
        eprt.addNewAddress().setStringValue(factoryUrl);

        String userDN = getUserName(jobExecutionContext);
View Full Code Here

     */
    public void cancelJob(String activityEpr, JobExecutionContext jobExecutionContext) throws GFacProviderException {
        try {
            initSecurityProperties(jobExecutionContext);
            EndpointReferenceType eprt = EndpointReferenceType.Factory.parse(activityEpr);
            UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription()
                    .getType();

            String factoryUrl = host.getUnicoreBESEndPointArray()[0];
            EndpointReferenceType epr = EndpointReferenceType.Factory.newInstance();
            epr.addNewAddress().setStringValue(factoryUrl);

            FactoryClient factory = new FactoryClient(epr, secProperties);
            factory.terminateActivity(eprt);
View Full Code Here

        } else if (hostDescriptionType instanceof SSHHostType) {
            hostType.add(HostTypes.SSH_HOST_TYPE);
            SSHHostType sshHostType = (SSHHostType) hostDescriptionType;
            hostDescriptor.setHpcResource(sshHostType.getHpcResource());
        } else if (hostDescriptionType instanceof UnicoreHostType) {
            UnicoreHostType unicoreHostType = (UnicoreHostType) hostDescriptionType;
            hostType.add(HostTypes.UNICORE_HOST_TYPE);
            String[] unicoreGateKeeperEndPointArray = unicoreHostType.getUnicoreBESEndPointArray();
            for (int i = 0; i < unicoreGateKeeperEndPointArray.length; i++) {
                gateKeeperEndPoint.add(unicoreGateKeeperEndPointArray[i]);
            }

            String[] gridFTPEndPointArray = unicoreHostType.getGridFTPEndPointArray();
            for (int i = 0; i < gridFTPEndPointArray.length; i++) {
                gridFTPEndPoint.add(gridFTPEndPointArray[i]);
            }
        } else if (hostDescriptionType instanceof Ec2HostType) {
            hostType.add(HostTypes.EC2_HOST_TYPE);
View Full Code Here

    }


  public void execute(JobExecutionContext jobExecutionContext)
      throws GFacProviderException {
        UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription()
                .getType();

        String factoryUrl = host.getUnicoreBESEndPointArray()[0];

        EndpointReferenceType eprt = EndpointReferenceType.Factory.newInstance();
        eprt.addNewAddress().setStringValue(factoryUrl);

        String userDN = getUserName(jobExecutionContext);
View Full Code Here

     */
    public void cancelJob(String activityEpr, JobExecutionContext jobExecutionContext) throws GFacProviderException {
        try {
            initSecurityProperties(jobExecutionContext);
            EndpointReferenceType eprt = EndpointReferenceType.Factory.parse(activityEpr);
            UnicoreHostType host = (UnicoreHostType) jobExecutionContext.getApplicationContext().getHostDescription()
                    .getType();

            String factoryUrl = host.getUnicoreBESEndPointArray()[0];
            EndpointReferenceType epr = EndpointReferenceType.Factory.newInstance();
            epr.addNewAddress().setStringValue(factoryUrl);

            FactoryClient factory = new FactoryClient(epr, secProperties);
            factory.terminateActivity(eprt);
View Full Code Here

TOP

Related Classes of org.apache.airavata.schemas.gfac.UnicoreHostType

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.