mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/mp/MissionProgrammingMessageService.java
private Message shutdownExecutors(final TerraHarvestMessage message, 
            final MissionProgrammingNamespace missionMessage, final RemoteChannel channel) throws IOException
    {
        //parse request
        final ManagedExecutorsShutdownRequestData request = 
                ManagedExecutorsShutdownRequestData.parseFrom(missionMessage.getData());
        
        if (request.getShutdownNow())
        {
            m_ManagedExecutor.shutdownAllExecutorServicesNow();
        }
        else
        {
            m_ManagedExecutor.shutdownAllExecutorServices();
        }
        
        //response
        m_MessageFactory.createMissionProgrammingResponseMessage(message, 
                MissionProgrammingMessageType.ManagedExecutorsShutdownResponse, null).queue(channel);
        
        //return request
        return request;
    }
/**
     * Handle the request to shutdown {@link ManagedExecutors}.
     * @param message
     *     original request message that contains all information needed to complete the request
     * @param missionMessage
     *     the mission program message that contains data
     * @param channel
     *     the channel from which the request was received
     * @return
     *     the parsed data message
     * @throws IOException
     *     thrown in the event that an error is experienced while attempting to send the response message 
     */
Handle the request to shutdown  ManagedExecutors.
Handle the request to shutdown ManagedExecutors .
private Message shutdownExecutors(final TerraHarvestMessage message, 
            final MissionProgrammingNamespace missionMessage, final RemoteChannel channel) throws IOException
    {
        final ManagedExecutorsShutdownRequestData request = 
                ManagedExecutorsShutdownRequestData.parseFrom(missionMessage.getData());
        if (request.getShutdownNow())
        {
            m_ManagedExecutor.shutdownAllExecutorServicesNow();
        }
        else
        {
            m_ManagedExecutor.shutdownAllExecutorServices();
        }
        m_MessageFactory.createMissionProgrammingResponseMessage(message, 
                MissionProgrammingMessageType.ManagedExecutorsShutdownResponse, null).queue(channel);
        return request;
    }
private Message shutdownExecutors ( final TerraHarvestMessage message , final MissionProgrammingNamespace missionMessage , final RemoteChannel channel ) throws IOException { final ManagedExecutorsShutdownRequestData request = ManagedExecutorsShutdownRequestData . parseFrom ( missionMessage . getData ( ) ) ; if ( request . getShutdownNow ( ) ) { m_ManagedExecutor . shutdownAllExecutorServicesNow ( ) ; } else { m_ManagedExecutor . shutdownAllExecutorServices ( ) ; } m_MessageFactory . createMissionProgrammingResponseMessage ( message , MissionProgrammingMessageType . ManagedExecutorsShutdownResponse , null ) . queue ( channel ) ; return request ; }
Handle the request to shutdown {@link ManagedExecutors}.
Handle the request to shutdown { @link ManagedExecutors } .
//parse request //response //return request