org.apache.directory.daemon
Interface DaemonApplication


public interface DaemonApplication

Interface used by DaemonApplications.

Version:
$Rev: 434416 $
Author:
Apache Directory Project

Method Summary
 void destroy()
          The application should destroy resources created in init() here.
 void init(InstallationLayout layout, java.lang.String[] args)
          Threads should be created, along with sockets.
 void start()
          Start threads and bind sockets here.
 void stop(java.lang.String[] args)
          Stop threads and close sockets opened in start() here.
 

Method Detail

init

void init(InstallationLayout layout,
          java.lang.String[] args)
          throws java.lang.Exception
Threads should be created, along with sockets.

Parameters:
layout - the application's installation home layout
args - the shifted arguments after the installation home path and the command arguments are removed
Throws:
java.lang.Exception

start

void start()
Start threads and bind sockets here.


stop

void stop(java.lang.String[] args)
          throws java.lang.Exception
Stop threads and close sockets opened in start() here.

Parameters:
args - shifted arguments without installation path or stop command
Throws:
java.lang.Exception

destroy

void destroy()
The application should destroy resources created in init() here.



Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.