goldengate.ftp.core.utils
Class FtpSignalHandler

java.lang.Object
  extended by goldengate.ftp.core.utils.FtpSignalHandler
All Implemented Interfaces:
sun.misc.SignalHandler

public final class FtpSignalHandler
extends Object
implements sun.misc.SignalHandler

Signal Handler to allow trapping signals.

Author:
Frederic Bregier

Field Summary
 
Fields inherited from interface sun.misc.SignalHandler
SIG_DFL, SIG_IGN
 
Method Summary
 void handle(sun.misc.Signal signal)
          Handle signal
static void initSignalHandler(FtpConfiguration configuration)
          Function to initialized the SignalHandler
static boolean isInShutdown()
          Says if the Process is currently in shutdown
static void terminate(boolean immediate, FtpConfiguration configuration)
          This function is the top function to be called when the process is to be shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isInShutdown

public static boolean isInShutdown()
Says if the Process is currently in shutdown

Returns:
True if already in shutdown

terminate

public static void terminate(boolean immediate,
                             FtpConfiguration configuration)
This function is the top function to be called when the process is to be shutdown.

Parameters:
immediate -
configuration -

initSignalHandler

public static void initSignalHandler(FtpConfiguration configuration)
Function to initialized the SignalHandler

Parameters:
configuration -

handle

public void handle(sun.misc.Signal signal)
Handle signal

Specified by:
handle in interface sun.misc.SignalHandler
Parameters:
signal -


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.