Examples of LogAlert


Examples of org.gudy.azureus2.core3.logging.LogAlert

        Debug.printStackTrace( f );
      }
    } 

    if ( !no_output ){
      org.gudy.azureus2.core3.logging.Logger.log(new LogAlert(
          LogAlert.UNREPEATABLE, message, e));
    }
  } 
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

        Debug.printStackTrace( f );
      }
    } 
   
    if ( !no_output ){
      org.gudy.azureus2.core3.logging.Logger.log(new LogAlert(
          LogAlert.REPEATABLE, message, e));
    }
  }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

       
      if ( bundle_fail_count == 1 ){
       
        e.printStackTrace();
       
        Logger.log(new LogAlert(LogAlert.REPEATABLE, LogAlert.AT_ERROR,
            "Failed to load resource bundle. One possible cause is "
                + "that you have installed " + Constants.APP_NAME + " into a directory "
                + "with a '!' in it. If so, please remove the '!'."));
      }
     
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

  public void addListener(ILogAlertListener l) {
    alertListeners.add(l);

    for (int i = 0; i < alertHistory.size(); i++) {
      LogAlert alert = (LogAlert) alertHistory.get(i);
      l.alertRaised(alert);
    }
  }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

                    if ( failed_accepts > 100 && successfull_accepts == 0 ){

                        // looks like its not going to work...
                        // some kind of socket problem
                             
                      Logger.logTextResource(new LogAlert(LogAlert.UNREPEATABLE,
                        LogAlert.AT_ERROR, "Network.alert.acceptfail"),
                        new String[] { "" + filter_port, "TCP" });
                 
                      use_filter  = false;
                     
                      break;
                    }
                  }
                }
              }
            };
     
        accept_thread.setDaemon( true );
     
        accept_thread.start();                 
     
        if (Logger.isEnabled())
          Logger.log(new LogEvent(LOGID,
              "ClientIDManager: listener established on port " + filter_port));
       
      }catch( Throwable e){
     
        Logger.logTextResource(new LogAlert(LogAlert.UNREPEATABLE,
            LogAlert.AT_ERROR, "Tracker.alert.listenfail"), new String[] { ""
            + filter_port });
   
        if (Logger.isEnabled())
          Logger.log(new LogEvent(LOGID,
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

     
      URL  url = (URL)properties.get( ClientIDGenerator.PR_URL );
     
      if ( !url.getProtocol().toLowerCase().equals( "http" )){
       
        Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR,
            "ClientIDManager only supports filtering of http, not https"));
       
        return;
      }
     
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

            {
                performOSAScript(sb);
            }
            catch (IOException e)
            {
                Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR, e
            .getMessage()));
            }
        }
    }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

            {
                performOSAScript(sb);
            }
            catch (IOException e)
            {
                Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR, e
            .getMessage()));
            }
        }
        else
        {
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

        {
            return Runtime.getRuntime().exec(cmdargs);
        }
        catch (IOException e)
        {
            Logger.log(new LogAlert(LogAlert.UNREPEATABLE, e.getMessage(), e));
            throw e;
        }
    }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

              
                  String msg = "Invalid incoming UDP listen port configured, " +port+ ". The port has been reset. Please check your config!";
                 
                  Debug.out( msg );
                 
                  Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR, msg));
                 
                  udp_listen_port = RandomUtils.generateRandomNetworkListenPort();
                 
                  COConfigurationManager.setParameter( name, udp_listen_port );
                 
              }else{
         
                udp_listen_port  = port;
              }
           }
         });
    
    COConfigurationManager.addAndFireParameterListener(
           "UDP.NonData.Listen.Port",
           new ParameterListener()
           {
             public void
             parameterChanged(String name)
             {
               int port = COConfigurationManager.getIntParameter( name );
              
               if ( port == udp_non_data_listen_port ){
                
                 return;
               }
              
               if ( port < 0 || port > 65535 || port == 6880 ) {
                
                    String msg = "Invalid incoming UDP non-data listen port configured, " +port+ ". The port has been reset. Please check your config!";
                   
                    Debug.out( msg );
                   
                    Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR, msg));
                   
                    udp_non_data_listen_port = RandomUtils.generateRandomNetworkListenPort();
                   
                    COConfigurationManager.setParameter( name, udp_non_data_listen_port );
                   
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.