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

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


            return null;
        }
   
        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
   
            Map<String, Object> result = client.getBuildResult( projectId );
   
            if ( result != null )
            {
                int buildDefinitionId = ContinuumBuildConstant.getBuildDefinitionId( result );
   
View Full Code Here


    {
        List<Installation> installations = new ArrayList<Installation>();
   
        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
   
            List<Map<String, String>> installationsList = client.getAvailableInstallations();
   
            for ( Map context : installationsList )
            {
                Installation installation = new Installation();
                installation.setName( ContinuumBuildConstant.getInstallationName( context ) );
View Full Code Here

                if ( directory == null )
                {
                    directory = "";
                }
   
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                return client.generateWorkingCopyContent( projectId, directory, baseUrl, imageBaseUrl );
            }
            catch ( MalformedURLException e )
            {
                log.error( "Invalid build agent url " + buildAgentUrl );
            }
View Full Code Here

                return "";
            }
   
            try
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                return client.getProjectFileContent( projectId, directory, filename );
            }
            catch ( MalformedURLException e )
            {
                log.error( "Invalid build agent url " + buildAgentUrl );
            }
View Full Code Here

    public void removeFromPrepareBuildQueue( String buildAgentUrl, int projectGroupId, int scmRootId )
        throws ContinuumException
    {
        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
            client.removeFromPrepareBuildQueue( projectGroupId, scmRootId );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Unable to remove projectGroupId=" + projectGroupId + " scmRootId=" + scmRootId +
                       " from prepare build queue: Invalid build agent url " + buildAgentUrl );
View Full Code Here

    public void removeFromBuildQueue( String buildAgentUrl, int projectId, int buildDefinitionId )
        throws ContinuumException
    {
        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
            client.removeFromBuildQueue( projectId, buildDefinitionId );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Unable to remove project " + projectId +
                       " from build queue: Invalid build agent url " + buildAgentUrl );
View Full Code Here

        {
            for ( String buildAgentUrl : overallDistributedBuildQueues.keySet() )
            {
                try
                {
                    SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                    client.removeFromPrepareBuildQueue( hashCodes );
                }
                catch ( MalformedURLException e )
                {
                    log.error( "Error trying to remove projects from prepare build queue. Invalid build agent url: " + buildAgentUrl );
                }
View Full Code Here

        {
            for ( String buildAgentUrl : overallDistributedBuildQueues.keySet() )
            {
                try
                {
                    SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                    client.removeFromBuildQueue( hashCodes );
                }
                catch ( MalformedURLException e )
                {
                    log.error( "Error trying to remove projects from build queue. Invalid build agent url: " + buildAgentUrl );
                }
View Full Code Here

   
                if ( overallDistributedBuildQueue != null )
                {
                    try
                    {
                        SlaveBuildAgentTransportClient client =
                            new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                       
                        if ( client.isProjectCurrentlyBuilding( projectId ) )
                        {
                            return buildAgentUrl;
                        }
                    }
                    catch ( MalformedURLException e )
View Full Code Here

                    if ( task != null && ( (PrepareBuildProjectsTask) task ).getProjectGroupId() == projectGroupId )
                    {
                        return distributedBuildQueue;
                    }

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

                    if ( client.isProjectGroupInQueue( projectGroupId ) )
                    {
                        return distributedBuildQueue;
                    }
                }
                catch ( TaskQueueException e )
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.