Examples of CruisecontrolServer


Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

            displayError( "Error opening url.", ioe.toString() );
        }
    }
 
    public void configureServer() {
      CruisecontrolServer server = selectServer();
     
      if ( server != null ) {
        JFrame frame = new ProjectConfigurationGUI(server).getFrame();
        frame.setTitle("Server: " + server.getName());
         
          forceConfigReload();
      }
    }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

          timers.add( timer );
    }
    }
 
  protected List getProjectAttributes() {
    CruisecontrolServer selectServer = selectServer();
    if ( selectServer == null ) {
            if ( servers.size() > 0 ) {
                selectServer =  servers.get( 0 );
            }
            else {
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

  private void addServerButtons(JPanel theServersPanel) {
    ImageIcon statusIcon = ServerStatusImages.getImage( ServerStatus.UNAVAILABLE );
       
      for( int index = 0; index < servers.size(); index++ ) {
      CruisecontrolServer server = (CruisecontrolServer) servers.get( index );
      JToggleButton serverButton = new JToggleButton( server.getName(), statusIcon );
      serverButton.setIconTextGap( 10 );
      serverButton.setHorizontalTextPosition( SwingConstants.CENTER );
      serverButton.setVerticalTextPosition( SwingConstants.TOP );
     
      serverButton.addActionListener( new ActionListener() {
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

    return tem;

  }
 
    protected CruisecontrolServer selectServer() {
      CruisecontrolServer server = null;
     
      for( int index=0;index < serverButtons.size(); index++ ) {
        JToggleButton button = (JToggleButton) serverButtons.get( index );
       
        if ( button.isSelected() ) {
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

  /* (non-Javadoc)
   * @see net.sourceforge.cruisecontrol.gui.panels.monitoring.ServerDisplayPanel#startMonitoring()
   */
  public void startMonitoring() {
    for( int index=0;index < servers.size();index++ ) {
      CruisecontrolServer server = (CruisecontrolServer) servers.get( index );
       
          Timer timer = new Timer();
          timer.schedule( new UpdateTask( server ),
                  100 * index,        //initial delay
                          server.getMonitorTime()*1000 )//subsequent rate
         
          timers.add( timer );
    }
    }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

   
    List theServers = CruisecontrolServerManager.getServers( "test-files/server_config.xml" );
   
    assertTrue( "No servers found", theServers.size() == 1 );
   
    CruisecontrolServer theServer = (CruisecontrolServer) theServers.iterator().next();
    Element theProjectElement = new Element( "project" );
    theProjectElement.setAttribute( "name", "Inventory" );
   
    String theStatus = new ProjectProxy(theServer,theProjectElement).getProjectStatus();
   
    assertTrue( "Bad stautus", theStatus.indexOf( "Unable" ) == -1 );
       
        String theConfigContents = theServer.getConfigFileContents();
        assertTrue( "No contents found", theConfigContents.length() > 0 );
       
        theServer.setConfigFileContents( theConfigContents );
  }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

        theServer.setConfigFileContents( theConfigContents );
  }
 
  public void testWithoutConfigFile() throws Exception {
   
    CruisecontrolServer theServer = new CruisecontrolServer();
    theServer.setHost( "localhost" );
    theServer.setRmiPort( "9999" );
   
    ProjectProxy theTestProxy = theServer.getProject( "Inventory" );
   
    assertTrue( "Bad stautus", theTestProxy.getProjectStatus().indexOf( "Unable" ) == -1 );
  }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.monitoring.CruisecontrolServer

    assertTrue( "Bad stautus", theTestProxy.getProjectStatus().indexOf( "Unable" ) == -1 );
  }

  public void testJmxConfig() throws Exception {
   
    CruisecontrolServer theServer = new CruisecontrolServer();
    theServer.setHost( "localhost" );
    theServer.setJmxPort( "1301" );
   
    ProjectProxy theTestProxy = theServer.getProject( "Inventory" );
   
    assertTrue( "Bad stautus", theTestProxy.getProjectStatus().indexOf( "Unable" ) == -1 );
  }
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.