Examples of SlaveBuildAgentTransportService


Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

                {
                    try
                    {
                        if ( isAgentAvailable( buildAgentUrl ) )
                        {
                            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection( buildAgentUrl );
                            int agentBuildSize = client.getBuildSizeOfAgent();
   
                            if ( idx == 0 )
                            {
                                whereToBeQueued = distributedBuildQueue;
                                size = agentBuildSize;
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

    public boolean isAgentAvailable( String buildAgentUrl )
        throws ContinuumException
    {
        try
        {
            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection( buildAgentUrl );

            return client.ping();
        }
        catch ( MalformedURLException e )
        {
            log.warn( "Invalid build agent url" + buildAgentUrl );
        }
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

                {
                    if ( agent.isEnabled() )
                    {
                        try
                        {
                            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                                agent.getUrl() );

                            if ( client.ping() )
                            {
                                log.debug( "agent is enabled, create distributed build queue for build agent '{}'",
                                           agent.getUrl() );
                                createDistributedBuildQueueForAgent( agent.getUrl() );
                            }
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

        {
            for ( BuildAgentConfiguration agent : agents )
            {
                if ( agent.isEnabled() && !overallDistributedBuildQueues.containsKey( agent.getUrl() ) )
                {
                    SlaveBuildAgentTransportService client = null;

                    try
                    {
                        client = createSlaveBuildAgentTransportClientConnection( agent.getUrl() );
                    }
                    catch ( MalformedURLException e )
                    {
                        log.error( "Invalid build agent URL {}, not creating distributed build queue", agent.getUrl() );
                        throw new ContinuumException( "Malformed build agent url " + agent.getUrl() );
                    }
                    catch ( Exception e )
                    {
                        agent.setEnabled( false );
                        configurationService.updateBuildAgent( agent );

                        log.error( "Error binding build agent {} service : {} ", agent.getUrl(),
                                   ContinuumUtils.throwableToString( e ) );
                        throw new ContinuumException( e.getMessage() );
                    }

                    boolean ping = false;

                    try
                    {
                        ping = client.ping();
                    }
                    catch ( Exception e )
                    {
                        agent.setEnabled( false );
                        log.error( "Unable to ping build agent '{}': {}", agent.getUrl(),
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

    {
        synchronized ( overallDistributedBuildQueues )
        {
            if ( agent.isEnabled() && !overallDistributedBuildQueues.containsKey( agent.getUrl() ) )
            {
                SlaveBuildAgentTransportService client;

                try
                {
                    client = createSlaveBuildAgentTransportClientConnection( agent.getUrl() );
                }
                catch ( MalformedURLException e )
                {
                    log.error( "Invalid build agent URL {}, not creating distributed build queue", agent.getUrl() );
                    throw new ContinuumException( "Malformed build agent url " + agent.getUrl() );
                }
                catch ( Exception e )
                {
                    log.error( "Error binding build agent {} service : {} ", agent.getUrl(),
                               ContinuumUtils.throwableToString( e ) );
                    throw new ContinuumException( e.getMessage() );
                }

                boolean ping;

                try
                {
                    ping = client.ping();
                }
                catch ( Exception e )
                {
                    log.error( "Unable to ping build agent '{}': {}", agent.getUrl(), ContinuumUtils.throwableToString(
                        e ) );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

                {
                    if ( isAgentAvailable( buildAgentUrl ) )
                    {
                        log.debug( "Getting projects in prepare build queue of build agent {}", buildAgentUrl );

                        SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                            buildAgentUrl );

                        List<Map<String, Object>> projects = client.getProjectsInPrepareBuildQueue();

                        for ( Map<String, Object> context : projects )
                        {
                            tasks.add( getPrepareBuildProjectsTask( context ) );
                        }
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

                {
                    if ( isAgentAvailable( buildAgentUrl ) )
                    {
                        log.debug( "Getting project currently preparing build in build agent {}", buildAgentUrl );

                        SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                            buildAgentUrl );
                        Map<String, Object> project = client.getProjectCurrentlyPreparingBuild();

                        if ( !project.isEmpty() )
                        {
                            map.put( buildAgentUrl, getPrepareBuildProjectsTask( project ) );
                        }
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

                {
                    if ( isAgentAvailable( buildAgentUrl ) )
                    {
                        log.debug( "Getting projects currently building in build agent {}", buildAgentUrl );

                        SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                            buildAgentUrl );
                        Map<String, Object> project = client.getProjectCurrentlyBuilding();

                        if ( !project.isEmpty() )
                        {
                            map.put( buildAgentUrl, getBuildProjectTask( project ) );
                        }
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

                {
                    if ( isAgentAvailable( buildAgentUrl ) )
                    {
                        log.debug( "Getting projects in build queue in build agent {}", buildAgentUrl );

                        SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                            buildAgentUrl );
                        List<Map<String, Object>> projects = client.getProjectsInBuildQueue();

                        for ( Map<String, Object> context : projects )
                        {
                            tasks.add( getBuildProjectTask( context ) );
                        }
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

        {
            if ( isAgentAvailable( buildAgentUrl ) )
            {
                log.debug( "Cancelling build in build agent {}", buildAgentUrl );

                SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                    buildAgentUrl );

                client.cancelBuild();
            }
            else
            {
                log.debug( "Unable to cancel build, build agent {} is not available", buildAgentUrl );
            }
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.