Examples of execute()


Examples of org.apache.archiva.indexer.merger.MergedRemoteIndexesTask.execute()

            MergedRemoteIndexesTaskRequest taskRequest =
                new MergedRemoteIndexesTaskRequest( indexMergerRequest, indexMerger );

            MergedRemoteIndexesTask job = new MergedRemoteIndexesTask( taskRequest );

            IndexingContext indexingContext = job.execute().getIndexingContext();

            File mergedRepoDir = indexingContext.getIndexDirectoryFile();
            TemporaryGroupIndex temporaryGroupIndex =
                new TemporaryGroupIndex( mergedRepoDir, indexingContext.getId(), repositoryGroupConfiguration.getId(),
                                         repositoryGroupConfiguration.getMergedIndexTtl() ) //
View Full Code Here

Examples of org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.execute()

        throws Exception
    {
        final DefaultThreadPool pool = new DefaultThreadPool( "default", 10 );
        pool.setDaemon( false );
        pool.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        pool.execute( new DummyRunnable() );
    }

    public void testWithoutThreadContext()
        throws Exception
    {
View Full Code Here

Examples of org.apache.avalon.excalibur.thread.impl.ResourceLimitingThreadPool.execute()

            if( maxStrict && ( !blocking ) && i >= max )
            {
                // This request shoudl throw an exception.
                try
                {
                    pool.execute( runner );
                    fail( "Should have failed when requesting more than max resources." );
                }
                catch( Exception e )
                {
                    // Ok
View Full Code Here

Examples of org.apache.axis.components.bridge.COMBridge.execute()

            Hashtable props = new Hashtable();
            props.put("progid", progID);
            if (threadingModel != null)
                props.put("threadmodel", threadingModel);

            Object result = bridge.execute(methodName, argValues, props);

            RPCElement resBody = new RPCElement(methodName + "Response");
            resBody.setPrefix(body.getPrefix());
            resBody.setNamespaceURI(body.getNamespaceURI());
            resBody.setEncodingStyle(msgContext.getEncodingStyle());
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.execute()

            axisOutMsgCtx.setTransportOut((TransportOutDescription) o);
            clientOptions.setTransportOut((TransportOutDescription) o);
            clientOptions.setProperty("TRANSPORT_OUT_DESCRIPTION", o);
        }

        mepClient.execute(true);
        if (wsRMEnabled) {
            Object rm11 = clientOptions.getProperty(SandeshaClientConstants.RM_SPEC_VERSION);
            if ( (rm11 != null) && rm11.equals(Sandesha2Constants.SPEC_VERSIONS.v1_1)){
                ServiceClient serviceClient = new ServiceClient(
                        axisOutMsgCtx.getConfigurationContext(), axisOutMsgCtx.getAxisService());
View Full Code Here

Examples of org.apache.axis2.clustering.ClusteringMessage.execute()

            log.debug("RPC request received by RpcMessagingHandler");
        }
        if (msg instanceof ClusteringMessage) {
            ClusteringMessage clusteringMsg = (ClusteringMessage) msg;
            try {
                clusteringMsg.execute(configurationContext);
            } catch (ClusteringFault e) {
                String errMsg = "Cannot handle RPC message";
                log.error(errMsg, e);
                throw new RemoteProcessException(errMsg, e);
            }
View Full Code Here

Examples of org.apache.axis2.clustering.context.ContextClusteringCommand.execute()

    }

    private void processMessage(Serializable msg, Member sender) throws ClusteringFault {
        if (msg instanceof ContextClusteringCommand && contextManager != null) {
            ContextClusteringCommand ctxCmd = (ContextClusteringCommand) msg;
            ctxCmd.execute(configurationContext);
        } else if (msg instanceof ConfigurationClusteringCommand && configurationManager != null) {
            configurationManager.process((ConfigurationClusteringCommand) msg);
        }
    }
}
View Full Code Here

Examples of org.apache.axis2.clustering.control.AckCommand.execute()

                    setServiceGroups(((GetConfigurationCommand) command).getServiceGroupNames());
            channelSender.sendToMember(getConfigRespCmd, sender);
        } else if (command instanceof AckCommand) {
            AckCommand cmd = (AckCommand) command;
            cmd.setMemberId(TribesUtil.getHost(sender));
            cmd.execute(configurationContext);
        } else {
            command.execute(configurationContext);
        }
    }
}
View Full Code Here

Examples of org.apache.axis2.clustering.control.GetConfigurationCommand.execute()

            }
            try {
                log.info("Received " + msg + " initialization request message from " +
                         TribesUtil.getName(invoker));
                GetConfigurationCommand command = (GetConfigurationCommand) msg;
                command.execute(configurationContext);
                GetConfigurationResponseCommand
                        getConfigRespCmd = new GetConfigurationResponseCommand();
                getConfigRespCmd.setServiceGroups(command.getServiceGroupNames());
                return getConfigRespCmd;
            } catch (ClusteringFault e) {
View Full Code Here

Examples of org.apache.axis2.clustering.control.GetStateCommand.execute()

            }
            try {
                log.info("Received " + msg + " initialization request message from " +
                         TribesUtil.getName(invoker));
                GetStateCommand command = (GetStateCommand) msg;
                command.execute(configurationContext);
                GetStateResponseCommand getStateRespCmd = new GetStateResponseCommand();
                getStateRespCmd.setCommands(command.getCommands());
                return getStateRespCmd;
            } catch (ClusteringFault e) {
                String errMsg = "Cannot handle initialization request";
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.