Package eu.irmosproject.pes.client

Examples of eu.irmosproject.pes.client.RemotePesService


        }

        //this one trusts anyone
        //CertificateTrustValidator validator=TestIdentityProvider.TRUST_EVERYONE;
        System.out.println("Get PES proxy");
        RemotePesService pesProxy = getServiceProxy(PES_SERVICE_ENDPOINT, CLIENT_KEYSTORE, CLIENT_PASSWORD, validator);

        //////////////test send notification from file, call to the service\\\\\\\\\\\\\\\\\\\\
        System.out.println("******************************************** ");
        System.out.println("Send test notification from file to the service");
        System.out.println("********************************************* ");
        Document doc = FileUtils.parseXML(new File(strNotifMessageFile));
        notifyPes(pesProxy, doc);


        //////////////////////// Estimation Job , call to a resource\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        System.out.println("**************************************** ");
        System.out.println("Call the service to estimate resources ");
        System.out.println("**************************************** ");
        //create resource
        PesResource pesResourceProxy = null;
        EndpointReferenceType estResourceEPR = null;
//        EndpointReferenceType reestResourceEPR = null;

        try {
            //create resource
            System.out.println("Create PES resource");
            X509Certificate cert = getKeystoreCertificate(CLIENT_KEYSTORE, CLIENT_PASSWORD, ALIAS);
            MatchPattern mp = new MatchPattern(cert.getSubjectDN().toString(), cert);
            estResourceEPR = pesProxy.createPesResource("myResource", mp);
        } catch (RemoteException ex) {
            throw new RuntimeException("Error encountered while creating a resource/Job" + ex.getMessage(), ex);
        }

        //call the resuorce prediction method
View Full Code Here


    private static RemotePesService getServiceProxy(String pesSvcEndpoint, String clientKeystorePath, String password, CertificateTrustValidator validator) {

        ProxyFactory proxyFactory;

        EndpointReferenceType pesEpr;
        RemotePesService pesProxy;


        try {
            proxyFactory = createProxyFactory(clientKeystorePath, password, validator);
            pesEpr = ConversationID.getEPR(pesSvcEndpoint);
View Full Code Here

        SAMLTokenCache tokenCache;
        GridClientPluginManager pluginManager;
        ProxyFactory proxyFactory;
        ProxyFactory rawProxyFactory;
        EndpointReferenceType pesEpr;
        RemotePesService pesProxy;
        CertificateTrustValidator manager;

        try {
            // Create a keystore identity
            System.out.println("Client keystore = " + clientKeystorePath);
View Full Code Here

TOP

Related Classes of eu.irmosproject.pes.client.RemotePesService

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.