Examples of env()


Examples of org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.ShellScriptBuilder.env()

    // test env
    builder.env("somekey", org.apache.commons.lang.StringUtils.repeat("A", 1024));
    builder.env("somekey", org.apache.commons.lang.StringUtils.repeat(
        "A", Shell.WINDOWS_MAX_SHELL_LENGHT - ("@set somekey=").length()));
    try {
      builder.env("somekey", org.apache.commons.lang.StringUtils.repeat(
          "A", Shell.WINDOWS_MAX_SHELL_LENGHT - ("@set somekey=").length()) + 1);
      fail("long env was expected to throw");
    } catch(IOException e) {
      assertThat(e.getMessage(), containsString(expectedMessage));
    }
View Full Code Here

Examples of org.jclouds.docker.compute.options.DockerTemplateOptions.env()

        // Look for environment variables configured on the entity
        Map<String, Object> shellEnv = entity.getConfig(SoftwareProcess.SHELL_ENVIRONMENT);
        if (shellEnv != null && !shellEnv.isEmpty()) {
            String env = Joiner.on(':').withKeyValueSeparator("=").join(shellEnv);
            options.env(ImmutableList.of(env));
        }

        return options;
    }
View Full Code Here

Examples of org.omg.CORBA.Request.env()

        Request request = getRequest(message, opType.getName(), nvlist, ret, exList);
        if (request == null) {
            throw new CorbaBindingException("Couldn't build the corba request");
        }
        request.invoke();
        Exception ex = request.env().exception();
        if (ex != null) {
            if (ex instanceof UnknownUserException) {
                UnknownUserException userEx = (UnknownUserException) ex;
                Any except = userEx.except;
                RaisesType raises = exceptions.get(except.type());
View Full Code Here

Examples of org.omg.CORBA.Request.env()

    obj = poa.create_reference_with_id(id, "IDL:test/poa/Test:1.0");
    test = TestHelper.narrow(obj);
    test.aMethod();
    request = obj._request("aMethod");
    request.invoke();
    TEST(request.env().exception() == null);

    id = ("testDSI").getBytes();
    obj = poa.create_reference_with_id(id, "IDL:test/poa/Test:1.0");
    test = TestHelper.narrow(obj);
    test.aMethod();
View Full Code Here

Examples of org.omg.CORBA.Request.env()

    obj = poa.create_reference_with_id(id, "IDL:test/poa/Test:1.0");
    test = TestHelper.narrow(obj);
    test.aMethod();
    request = obj._request("aMethod");
    request.invoke();
    TEST(request.env().exception() == null);
  }

  void uTestDefaultServant(ORB orb, POA root, POAManager manager)
  {
    POA poa;
View Full Code Here

Examples of org.omg.CORBA.Request.env()

                                       exList,
                                       ctxList);
            request.invoke();

            mc.put(ObjectMessageContext.MESSAGE_INPUT, Boolean.FALSE);
            java.lang.Exception ex = request.env().exception();
            if (ex == null) {
                if (retVal != null) {
                    message.setStreamableReturnValue(retVal.getObject());
                }
View Full Code Here

Examples of org.omg.CORBA.Request.env()

        } catch (SystemException ex) {
            message.setContent(Exception.class, new Fault(ex));
            message.setSystemException(ex);
            return;
        }
        Exception ex = request.env().exception();
        if (ex != null) {
            if (ex instanceof UnknownUserException) {
                UnknownUserException userEx = (UnknownUserException) ex;
                Any except = userEx.except;
                RaisesType raises = exceptions.get(except.type());
View Full Code Here

Examples of org.omg.CORBA.Request.env()

        } catch (SystemException ex) {
            message.setContent(Exception.class, new Fault(ex));
            message.setSystemException(ex);
            return;
        }
        Exception ex = request.env().exception();
        if (ex != null) {
            if (ex instanceof UnknownUserException) {
                UnknownUserException userEx = (UnknownUserException) ex;
                Any except = userEx.except;
                RaisesType raises = exceptions.get(except.type());
View Full Code Here

Examples of org.omg.CORBA.Request.env()

        } catch (SystemException ex) {
            message.setContent(Exception.class, new Fault(ex));
            message.setSystemException(ex);
            return;
        }
        Exception ex = request.env().exception();
        if (ex != null) {
            if (ex instanceof UnknownUserException) {
                UnknownUserException userEx = (UnknownUserException) ex;
                Any except = userEx.except;
                RaisesType raises = exceptions.get(except.type());
View Full Code Here

Examples of org.omg.CORBA.Request.env()

        // Invoke
        request.invoke();

        // Get exception
        Object returnValue = null;
        Exception exception = request.env().exception();
        if (exception == null) {
            // Extract the return value
            if (returnType != null) {
                Any returned = request.return_value();
                returnValue = CorbaUtil.extractValue(returnType, returned);
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.