Examples of call()


Examples of hudson.remoting.Channel.call()

        Collection<ParserConfigurator> all = Collections.emptyList();

        if (Jenkins.getInstance()==null) {
            Channel ch = Channel.current();
            if (ch!=null)
                all = ch.call(new Callable<Collection<ParserConfigurator>, IOException>() {

                    private static final long serialVersionUID = -2178106894481500733L;

                    public Collection<ParserConfigurator> call() throws IOException {
                        return new ArrayList<ParserConfigurator>(all());
View Full Code Here

Examples of hudson.remoting.VirtualChannel.call()

            return cachedHostName;

        VirtualChannel channel = getChannel();
        if(channel==null)   return null; // can't compute right now

        for( String address : channel.call(new ListPossibleNames())) {
            try {
                InetAddress ia = InetAddress.getByName(address);
                if(!(ia instanceof Inet4Address)) {
                    LOGGER.fine(address+" is not an IPv4 address");
                    continue;
View Full Code Here

Examples of java.util.concurrent.Callable.call()

                queue.addAll(0, Arrays.asList(array));
            } else if (dependency instanceof Callable) {
                Callable callable = (Callable) dependency;
                Object callableResult;
                try {
                    callableResult = callable.call();
                } catch (Exception e) {
                    throw UncheckedException.asUncheckedException(e);
                }
                if (callableResult != null) {
                    queue.add(0, callableResult);
View Full Code Here

Examples of javax.jms.MessageConsumer.call()

        for (int i = 0; i < CONSUMER_COUNT; i++) {
            new Thread("Consumer:" + i) {
                public void run() {
                    try {
                        consumer.call();
                    } catch (Throwable e) {
                        e.printStackTrace();
                        workerError[0] = e;
                    }
                }
View Full Code Here

Examples of javax.jms.MessageProducer.call()

        final Throwable workerError[] = new Throwable[1];
        for (int i = 0; i < PRODUCER_COUNT; i++) {
            new Thread("Producer:" + i) {
                public void run() {
                    try {
                        producer.call();
                    } catch (Throwable e) {
                        e.printStackTrace();
                        workerError[0] = e;
                    }
                }
View Full Code Here

Examples of javax.tools.JavaCompiler.CompilationTask.call()

   
    CompilationTask cTask = compiler.getTask(null, fileManager, null, null,
        null,
        fileManager.getJavaFileObjects(
            javaFiles.toArray(new File[javaFiles.size()])));
    assertTrue(cTask.call());
  }
}
View Full Code Here

Examples of javax.xml.soap.SOAPConnection.call()

        logMessage(soapMessage);

     
        final SOAPConnection soapConnection = getSoapConnectionInstance();
        final SOAPMessage soapMessageReply =
            soapConnection.call(soapMessage, url);
        logger.info("\nSOAP response");
        logMessage(soapMessageReply);
        soapConnection.close();
       
        return soapMessageReply.getSOAPBody();
View Full Code Here

Examples of jnr.x86asm.Assembler.call()

        // Clear %rax, since it is used by varargs functions to determine the number of float registers to be saved
        a.mov(rax, imm(0));

        // Call to the actual native function
        a.call(imm(function.getFunctionAddress()));

        if (saveErrno) {
            // Save the return on the stack
            switch (resultType.nativeType) {
                case VOID:
View Full Code Here

Examples of kalashnikov.dmitry.lab3.MergeTask.call()

    @Test
    public void testNormalMerge() throws Exception {
        int[] first = new int[]{1, 5, 20, 40};
        int[] second = new int[]{0, 9, 20};
        MergeTask mt = new MergeTask(first, second);
        Assert.assertArrayEquals(new int[]{0, 1, 5, 9, 20, 20, 40}, mt.call());
    }

    @Test(expected = NullPointerException.class)
    public void testMergeWithNull() {
        int[] second = new int[]{0, 9, 20};
View Full Code Here

Examples of kalashnikov.dmitry.lab3.SortTask.call()

        str[0] = "4";
        str[1] = "1";
        str[2] = "3";
        str[3] = "2";
        SortTask st = new SortTask(str);
        int[] res = st.call();
        Assert.assertArrayEquals(new int[]{1, 2, 3, 4}, res);
    }

    @Test(expected = NumberFormatException.class)
    public void testSortTaskWithNull() throws Exception {
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.