Package org.apache.continuum.distributed.transport.slave

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


            throw new BuildAgentConfigurationException( buildAgentUrl );
        }

        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
            String result = client.releaseCleanup( releaseId );

            removeFromReleaseInProgress( releaseId );
            return result;
        }
        catch ( MalformedURLException e )
View Full Code Here


                        throw new BuildAgentConfigurationException( buildAgentUrl );
                    }

                    try
                    {
                        SlaveBuildAgentTransportClient client =
                            new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                        Map map = client.getListener( releaseId );

                        if ( map != null && !map.isEmpty() )
                        {
                            Map<String, Object> release = releasesInProgress.get( releaseId );
                            release.put( DistributedReleaseUtil.KEY_RELEASE_ID, releaseId );
View Full Code Here

    {
        PrepareBuildProjectsTask prepareBuildTask = (PrepareBuildProjectsTask) task;

        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );

            log.info( "initializing buildContext" );
            List<Map<String, Object>> buildContext =
                initializeBuildContext( prepareBuildTask.getProjectsBuildDefinitionsMap(),
                                        prepareBuildTask.getTrigger(), prepareBuildTask.getScmRootAddress(),
                                        prepareBuildTask.getProjectScmRootId() );

            startTime = System.currentTimeMillis();
            client.buildProjects( buildContext );
            endTime = System.currentTimeMillis();
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid URL " + buildAgentUrl + ", not building" );
View Full Code Here

                {
                    if ( agent.isEnabled() )
                    {
                        try
                        {
                            SlaveBuildAgentTransportClient client =
                                new SlaveBuildAgentTransportClient( new URL( agent.getUrl() ) );
   
                            if ( client.ping() )
                            {
                                log.info(
                                    "agent is enabled, create distributed build queue for build agent '" + agent.getUrl() + "'" );
                                createDistributedBuildQueueForAgent( agent.getUrl() );
                            }
View Full Code Here

            {
                if ( agent.isEnabled() && !overallDistributedBuildQueues.containsKey( agent.getUrl() ) )
                {
                    try
                    {
                        SlaveBuildAgentTransportClient client =
                            new SlaveBuildAgentTransportClient( new URL( agent.getUrl() ) );
   
                        if ( client.ping() )
                        {
                            log.info( "agent is enabled, create distributed build queue for build agent '" + agent.getUrl() + "'" );
                            createDistributedBuildQueueForAgent( agent.getUrl() );
                        }
                        else
View Full Code Here

            {
                List<PrepareBuildProjectsTask> tasks = new ArrayList<PrepareBuildProjectsTask>();

                try
                {
                    SlaveBuildAgentTransportClient client =
                        new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                    List<Map<String, Object>> projects = client.getProjectsInPrepareBuildQueue();

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

        {
            for ( String buildAgentUrl : overallDistributedBuildQueues.keySet() )
            {
                try
                {
                    SlaveBuildAgentTransportClient client =
                        new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                    Map<String, Object> project = client.getProjectCurrentlyPreparingBuild();

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

        {
            for ( String buildAgentUrl : overallDistributedBuildQueues.keySet() )
            {
                try
                {
                    SlaveBuildAgentTransportClient client =
                        new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                    Map<String, Object> project = client.getProjectCurrentlyBuilding();

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

            {
                List<BuildProjectTask> tasks = new ArrayList<BuildProjectTask>();

                try
                {
                    SlaveBuildAgentTransportClient client =
                        new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                    List<Map<String, Object>> projects = client.getProjectsInBuildQueue();

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

    public void cancelDistributedBuild( String buildAgentUrl )
        throws ContinuumException
    {
        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );

            client.cancelBuild();
        }
        catch ( MalformedURLException e )
        {
            log.error( "Error cancelling build in build agent: Invalid build agent url " + buildAgentUrl );
            throw new ContinuumException( "Error cancelling build in build agent: Invalid build agent url " + buildAgentUrl );
View Full Code Here

TOP

Related Classes of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

Copyright © 2018 www.massapicom. 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.