mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/mp/MissionProgrammingMessageService.java
private Message executeShutdown(final TerraHarvestMessage message, final MissionProgrammingNamespace missionMessage,
            final RemoteChannel channel) throws IOException
    {
        //parse the request message
        final ExecuteShutdownRequestData request = ExecuteShutdownRequestData.parseFrom(missionMessage.getData());
        
        //get the program name
        final String programName = request.getMissionName();
        
         //get the program
        final Program program = m_Manager.getProgram(programName);
        
        program.executeShutdown();
        
        final ExecuteShutdownResponseData response = ExecuteShutdownResponseData.newBuilder().
                setMissionName(programName).build();
        m_MessageFactory.createMissionProgrammingResponseMessage(
                message, MissionProgrammingMessageType.ExecuteShutdownResponse, response).queue(channel);
        
        return request;
    }
/**
     * Handle request for a mission to be shutdown.
     * @param message
     *     the complete request
     * @param missionMessage
     *     the mission program specific message that contains the name of the program to shutdown
     * @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 request for a mission to be shutdown.
Handle request for a mission to be shutdown .
private Message executeShutdown(final TerraHarvestMessage message, final MissionProgrammingNamespace missionMessage,
            final RemoteChannel channel) throws IOException
    {
        final ExecuteShutdownRequestData request = ExecuteShutdownRequestData.parseFrom(missionMessage.getData());
        final String programName = request.getMissionName();
        final Program program = m_Manager.getProgram(programName);
        program.executeShutdown();
        final ExecuteShutdownResponseData response = ExecuteShutdownResponseData.newBuilder().
                setMissionName(programName).build();
        m_MessageFactory.createMissionProgrammingResponseMessage(
                message, MissionProgrammingMessageType.ExecuteShutdownResponse, response).queue(channel);
        return request;
    }
private Message executeShutdown ( final TerraHarvestMessage message , final MissionProgrammingNamespace missionMessage , final RemoteChannel channel ) throws IOException { final ExecuteShutdownRequestData request = ExecuteShutdownRequestData . parseFrom ( missionMessage . getData ( ) ) ; final String programName = request . getMissionName ( ) ; final Program program = m_Manager . getProgram ( programName ) ; program . executeShutdown ( ) ; final ExecuteShutdownResponseData response = ExecuteShutdownResponseData . newBuilder ( ) . setMissionName ( programName ) . build ( ) ; m_MessageFactory . createMissionProgrammingResponseMessage ( message , MissionProgrammingMessageType . ExecuteShutdownResponse , response ) . queue ( channel ) ; return request ; }
Handle request for a mission to be shutdown.
Handle request for a mission to be shutdown .
//parse the request message //get the program name //get the program