Package org.apache.directory.shared.ldap.message.extended

Examples of org.apache.directory.shared.ldap.message.extended.GracefulShutdownRequest


            Thread t = new Thread( new Ticker() );
            t.start();
        }
        try
        {
            ctx.extendedOperation( new GracefulShutdownRequest( 0, timeOffline, delay ) );
            isSuccess = true;
        }
        catch ( Throwable t )
        {
            /*
 
View Full Code Here


        // -------------------------------------------------------------------

        IoAcceptor acceptor = ( IoAcceptor ) requestor.getIoSession().getService();
        List<IoSession> sessions = new ArrayList<IoSession>(
                acceptor.getManagedSessions().values() );
        GracefulShutdownRequest gsreq = ( GracefulShutdownRequest ) req;

        // build the graceful disconnect message with replicationContexts
        GracefulDisconnect notice = getGracefulDisconnect( gsreq.getTimeOffline(), gsreq.getDelay() );

        // send (synch) the GracefulDisconnect to each client before unbinding
        sendGracefulDisconnect( sessions, notice, requestor.getIoSession() );

        // wait for the specified delay before we unbind the service
        waitForDelay( gsreq.getDelay() );

        // -------------------------------------------------------------------
        // unbind the server socket for the LDAP service here so no new
        // connections are accepted while we process this shutdown request
        // note that the following must be issued before binding the ldap
View Full Code Here

            t.start();
        }
        try
        {
            ctx.extendedOperation( JndiUtils
                .toJndiExtendedRequest( new GracefulShutdownRequest( 0, timeOffline, delay ) ) );
            isSuccess = true;
        }
        catch ( Throwable t )
        {
            /*
 
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.message.extended.GracefulShutdownRequest

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.