SignalLogger.register
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.hadoop.util.SignalLogger.register(Showing top 5 results out of 315)

origin: io.hops/hadoop-common

 @Test(timeout=60000)
 public void testInstall() throws Exception {
  Assume.assumeTrue(SystemUtils.IS_OS_UNIX);
  SignalLogger.INSTANCE.register(LOG);
  try {
   SignalLogger.INSTANCE.register(LOG);
   Assert.fail("expected IllegalStateException from double registration");
  } catch (IllegalStateException e) {
   // fall through
  }
 }
}
origin: io.hops/hadoop-common

/**
 * Register some signal handlers.
 *
 * @param LOG        The log4j logfile to use in the signal handlers.
 */
public void register(final Log LOG) {
 register(LogAdapter.create(LOG));
}
origin: com.facebook.presto.hadoop/hadoop-cdh4

 SignalLogger.INSTANCE.register(LOG);
} catch (Throwable t) {
 LOG.warn("failed to register any UNIX signal loggers: ", t);
origin: io.hops/hadoop-common

 SignalLogger.INSTANCE.register(LOG);
} catch (Throwable t) {
 LOG.warn("failed to register any UNIX signal loggers: ", t);
origin: apache/tajo

 SignalLogger.INSTANCE.register(LOG);
} catch (Throwable t) {
 LOG.warn("failed to register any UNIX signal loggers: ", t);
org.apache.hadoop.utilSignalLoggerregister

Javadoc

Register some signal handlers.

Popular methods of SignalLogger

    Popular classes and methods

    • scheduleAtFixedRate (ScheduledExecutorService)
      Creates and executes a periodic action that becomes enabled first after the given initial delay, and
    • getExternalFilesDir (Context)
    • setRequestProperty (URLConnection)
      Sets the value of the specified request header field. The value will only be used by the current URL
    • File (java.io)
      LocalStorage based File implementation for GWT. Should probably have used Harmony as a starting poin
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • Permission (java.security)
      Abstract class for representing access to a system resource. All permissions have a name (whose inte
    • Timestamp (java.sql)
      A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
    • Locale (java.util)
      Locale represents a language/country/variant combination. Locales are used to alter the presentatio
    • Collectors (java.util.stream)
    • BoxLayout (javax.swing)

    For IntelliJ IDEA,
    Android Studio or Eclipse

    • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
    • EnterpriseFAQAboutContact Us
    • Terms of usePrivacy policyCodeboxFind Usages
    Add Codota to your IDE (free)