Package org.gudy.azureus2.core3.logging

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


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

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

              
                  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

        }catch( Throwable e ){
       
          Debug.printStackTrace( e );
         
          Logger.log(
            new LogAlert(
              true,
              LogAlert.AT_WARNING,
              "Socks proxy " + sock.getName() + " check failed: " + Debug.getNestedExceptionMessage( e )));
        }
      }
     
      NetworkAdminHTTPProxy http_proxy = getHTTPProxy();
     
      if ( http_proxy != null ){
     
        try{

          http_proxy.getDetails();
         
        }catch( Throwable e ){
         
          Debug.printStackTrace( e );
         
          Logger.log(
            new LogAlert(
              true,
              LogAlert.AT_WARNING,
              "HTTP proxy " + http_proxy.getName() + " check failed: " + Debug.getNestedExceptionMessage( e )));
        }
      }
View Full Code Here

                  Debug.out(new Date() + ": listen port on [" + inet_address + ": " + tcp_listen_port + "] seems CLOSED [" + listenFailCounts[i] + "x]");
                  if (listenFailCounts[i] > 4)
                  {
                    String error = t.getMessage() == null ? "<null>" : t.getMessage();
                    String msg = "Listen server socket on [" + inet_address + ": " + tcp_listen_port + "] does not appear to be accepting inbound connections.\n[" + error + "]\nAuto-repairing listen service....\n";
                    Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_WARNING, msg));
                    restart();
                    listenFailCounts[i] = 0;
                  }
                }
              }
View Full Code Here

     
      if (tcp_listen_port < 0 || tcp_listen_port > 65535 || tcp_listen_port == 6880)
      {
        String msg = "Invalid incoming TCP listen port configured, " + tcp_listen_port + ". Port reset to default. Please check your config!";
        Debug.out(msg);
        Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR, msg));
        tcp_listen_port = RandomUtils.generateRandomNetworkListenPort();
        COConfigurationManager.setParameter(port_config_key, tcp_listen_port);
      }
     
      if (COConfigurationManager.getBooleanParameter(port_enable_config_key))
      {
        last_non_local_connection_time = COConfigurationManager.getLongParameter( "network.tcp.port." + tcp_listen_port + ".last.nonlocal.incoming", 0 );
       
        if ( last_non_local_connection_time > SystemTime.getCurrentTime()){
         
          last_non_local_connection_time = SystemTime.getCurrentTime();
        }
       
        if (serverSelectors.length == 0)
        {
          InetSocketAddress address;
          InetAddress[] bindAddresses = getEffectiveBindAddresses();
         
          List tempSelectors = new ArrayList(bindAddresses.length);
         
         
          listenFailCounts = new int[bindAddresses.length];
          for (int i = 0; i < bindAddresses.length; i++)
          {
            InetAddress bindAddress = bindAddresses[i];

            if(!NetworkAdmin.getSingleton().hasIPV6Potential(true) && bindAddress instanceof Inet6Address)
              continue;
           
            if (bindAddress != null)
              address = new InetSocketAddress(bindAddress, tcp_listen_port);
            else
              address = new InetSocketAddress(tcp_listen_port);
           
            VirtualServerChannelSelector serverSelector;
           
            if(bindAddresses.length == 1)
              serverSelector = VirtualServerChannelSelectorFactory.createBlocking(address, so_rcvbuf_size, selectListener);
            else
              serverSelector = VirtualServerChannelSelectorFactory.createNonBlocking(address, so_rcvbuf_size, selectListener);
            serverSelector.start();
           
            tempSelectors.add(serverSelector);
          }
         
          if(tempSelectors.size() == 0)
            Logger.log(new LogAlert(true,LogAlert.AT_WARNING,MessageText.getString("network.bindError")));
         
          serverSelectors = (VirtualServerChannelSelector[])tempSelectors.toArray(new VirtualServerChannelSelector[tempSelectors.size()]);
        }
      } else
      {
View Full Code Here

     
     
      if ( warning != null ){
       
        Logger.logTextResource(
          new LogAlert(true, LogAlert.AT_WARNING,"azinstancehandler.alert.portclash"),
          new String[]{
            warning,
            String.valueOf(RandomUtils.LISTEN_PORT_MIN ),
            String.valueOf(RandomUtils.LISTEN_PORT_MAX)});
      }
View Full Code Here

        "dvdburn_trial"
      });
    } catch (Throwable e) {
      String s = "Creating Trial: " + Debug.getNestedExceptionMessage(e);
      new MessageBoxShell("Trial Error", s).open(null);
      Logger.log(new LogAlert(true, s, e));
    }
  }
View Full Code Here

                  "Licence Addition Error",
                  s );
             
              mb.open();
             
              Logger.log(new LogAlert(true, LogAlert.AT_ERROR, "Adding Licence",
                  e));
            }
          }
        }
      });
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.core3.logging.LogAlert

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.