Examples of SlaveBuildAgentTransportService


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

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

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

                        for ( Map<String, Object> context : projects )
                        {
                            int pid = ContinuumBuildConstant.getProjectId( context );
                            int buildId = ContinuumBuildConstant.getBuildDefinitionId( context );
View Full Code Here

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

                {
                    try
                    {
                        if ( isAgentAvailable( buildAgentUrl ) )
                        {
                            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                                buildAgentUrl );

                            // TODO: should check for specific build definition and handle that in UI;
                            // project with different build definitions can build at the same time in different agents and
                            // currently, we can't handle that in the ui.
                            if ( client.isProjectCurrentlyBuilding( projectId, -1 ) )
                            {
                                agentUrl = buildAgentUrl;
                                break;
                            }
                        }
View Full Code Here

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

                        {
                            log.debug(
                                "Checking if project {} with build definition {} is currently queued or processed in agent {}",
                                new Object[]{projectId, buildDefinitionId, buildAgentUrl} );

                            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                                buildAgentUrl );

                            if ( client.isProjectInPrepareBuildQueue( projectId, buildDefinitionId ) ||
                                client.isProjectCurrentlyPreparingBuild( projectId, buildDefinitionId ) ||
                                client.isProjectInBuildQueue( projectId, buildDefinitionId ) ||
                                client.isProjectCurrentlyBuilding( projectId, buildDefinitionId ) )
                            {
                                log.debug(
                                    "Project {} with build definition {} is currently queued or processed in agent {}",
                                    new Object[]{projectId, buildDefinitionId, buildAgentUrl} );
                                agentUrl = buildAgentUrl;
View Full Code Here

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

                            {
                                pIds.add( project.getId() );
                            }
                        }

                        SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                            buildAgentUrl );

                        if ( client.isProjectScmRootInQueue( scmRootId, pIds ) )
                        {
                            log.debug(
                                "Projects in the same continuum group are building in build agent: {}. Also building project in the same agent.",
                                buildAgentUrl );
                            return distributedBuildQueue;
View Full Code Here

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

                                {
                                    if ( isAgentAvailable( buildAgentUrl ) )
                                    {
                                        log.debug( "Build agent {} is available", buildAgentUrl );

                                        SlaveBuildAgentTransportService client =
                                            createSlaveBuildAgentTransportClientConnection( buildAgentUrl );
                                        int agentBuildSize = client.getBuildSizeOfAgent();

                                        log.debug( "Number of projects currently building in agent: {}",
                                                   agentBuildSize );
                                        if ( idx == 0 )
                                        {
View Full Code Here

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

                    {
                        if ( isAgentAvailable( buildAgentUrl ) )
                        {
                            log.debug( "Build agent {} is available", buildAgentUrl );

                            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                                buildAgentUrl );
                            int agentBuildSize = client.getBuildSizeOfAgent();

                            log.debug( "Number of projects currently building in agent: {}", agentBuildSize );
                            if ( idx == 0 )
                            {
                                log.debug( "Current least busy agent: {}", buildAgentUrl );
View Full Code Here

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

    public boolean pingBuildAgent( 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

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                    buildAgentUrl );
                return client.getReleasePluginParameters( projectId, pomFilename );
            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();
View Full Code Here

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

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                    buildAgentUrl );
                return client.processProject( projectId, pomFilename, autoVersionSubmodules );
            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();
View Full Code Here

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

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
                    buildAgentUrl );

                String releaseId = client.releasePrepare( createProjectMap( project ), releaseProperties,
                                                          releaseVersion, developmentVersion, environments, username );

                String key = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() );
                addReleasePrepare( releaseId, buildAgentUrl, releaseVersion.get( key ), "prepare",
                                   releaseProperties.getProperty( "preparation-goals" ), username );
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.