Package mx4j.log

Examples of mx4j.log.Logger.info()


         alive = true;
         Thread serverThread = new Thread(new Runnable()
         {
            public void run()
            {
               if (logger.isEnabledFor(Logger.INFO)) logger.info("HttpAdaptor version " + VERSION + " started on port " + port);

               startDate = new Date();
               requestsCount = 0;

               while (alive)
View Full Code Here


               {
                  logger.warn("Exception closing the server", e);
               }
               serverSocket = null;
               alive = false;
               if (logger.isEnabledFor(Logger.INFO)) logger.info("HttpAdaptor version " + VERSION + " stopped on port " + port);
            }
         });
         serverThread.start();
      }
      else
View Full Code Here

         });
         serverThread.start();
      }
      else
      {
         if (logger.isEnabledFor(Logger.INFO)) logger.info("Start failed, no server target server has been set");
      }
   }


   /**
 
View Full Code Here

// always close the socket
                  client.close();
               }
               catch (IOException e)
               {
                  log.info("Exception during socket close", e);
               }
            }
         }
      }
   }
View Full Code Here

               }
            }
         }
         catch (Exception x)
         {
            if (logger.isEnabledFor(Logger.INFO)) logger.info("Caught Exception in " + thread.getName() + " Thread, exiting", x);
         }
         finally
         {
            if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Stopped " + thread.getName() + " Thread on port " + port);
            try
View Full Code Here

      doStart();

      active = true;

      if (logger.isEnabledFor(Logger.INFO)) logger.info("JMXConnectorServer started at: " + getAddress());
   }

   /**
    * Template method implemented by subclasses to start this JMXConnectorServer
    */
 
View Full Code Here

      active = false;

      doStop();

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.INFO)) logger.info("JMXConnectorServer stopped at: " + getAddress());
   }

   /**
    * Template method implemented by subclasses to stop this JMXConnectorServer
    */
 
View Full Code Here

         throw x;
      }
      catch (Exception x)
      {
         Logger logger = getLogger();
         if (logger.isEnabledFor(Logger.INFO)) logger.info("Exception while deploying AXIS service", x);
         throw new IOException("Could not deploy connector server to AXIS " + x.toString());
      }
   }

   protected void undeploy(JMXServiceURL address, Map environment) throws IOException
View Full Code Here

         deployer.process(options, wsdd);
      }
      catch (Exception x)
      {
         Logger logger = getLogger();
         if (logger.isEnabledFor(Logger.INFO)) logger.info("Exception while undeploying AXIS service", x);
         throw new IOException("Could not undeploy connector server " + x.toString());
      }
   }
}
View Full Code Here

// If we're still running after waitFor() returns, means stop() has not been called
// so the process has returned unexpectedly
               if (isRunning())
               {
                  stop();
                  if (logger.isEnabledFor(Logger.INFO)) logger.info("Unexpected exception (maybe the port " + getPort() + " is already in use)");
               }
            }
            catch (InterruptedException x)
            {
               if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Process has been interrupted", x);
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.