Class MissionControlSupport

  • All Implemented Interfaces:
    MissionStubSupport

    public class MissionControlSupport
    extends java.lang.Object
    implements MissionStubSupport
    Provides convenience methods for simple ways of running missions. It might have to be seen later, if some of them should be moved later to the agency directly, especially if this move would prevent unnecessary network traffic.
    • Method Detail

      • start

        public OngoingMissionRun start​(io.molr.commons.domain.Mission mission,
                                       java.util.Map<java.lang.String,​java.lang.Object> missionParameters)
        Parameters:
        mission - the Mission which has been registered with the Mole
        missionParameters - the mission parameters required by the Mission during it's execution
        Returns:
        control to the running Mission
      • start

        public OngoingMissionRun start​(java.lang.String missionName,
                                       java.util.Map<java.lang.String,​java.lang.Object> missionParameters)
        Parameters:
        missionName - the mission name
        missionParameters - the mission parameters required by the Mission during it's execution
        Returns:
        control to the running Mission
      • control

        public OngoingMissionRun control​(reactor.core.publisher.Mono<io.molr.commons.domain.MissionHandle> handle)
        Parameters:
        handle - the MissionHandle to the running Mission
        Returns:
        control to the running Mission represented by the argument
      • control

        public OngoingMissionRun control​(io.molr.commons.domain.MissionHandle handle)
        Parameters:
        handle - the MissionHandle to the running Mission
        Returns:
        control to the running Mission represented by the argument
      • start

        public <P1> OngoingMissionRun start​(VoidStub1<P1> stub,
                                            P1 p1)
        Description copied from interface: MissionStubSupport
        Initiates the mission represented by the stub and returns control to the running Mission
        Specified by:
        start in interface MissionStubSupport
        Type Parameters:
        P1 - the type of parameter 1
        Parameters:
        stub - the VoidStub1
        p1 - the parameter 1 of Mission
        Returns:
        control to the running Mission
      • start

        public <P1,​R> OngoingReturningMissionRun<R> start​(MissionStub1<P1,​R> stub,
                                                                P1 p1)
        Description copied from interface: MissionStubSupport
        Initiates the mission represented by the stub and returns control to the running Mission
        Specified by:
        start in interface MissionStubSupport
        Type Parameters:
        P1 - the type of parameter 1
        R - the return type of Mission
        Parameters:
        stub - the MissionStub1
        p1 - the parameter 1 of Mission
        Returns:
        control to the running Mission
      • start

        public <P1,​P2> OngoingMissionRun start​(VoidStub2<P1,​P2> stub,
                                                     P1 p1,
                                                     P2 p2)
        Description copied from interface: MissionStubSupport
        Initiates the mission represented by the stub and returns control to the running Mission
        Specified by:
        start in interface MissionStubSupport
        Type Parameters:
        P1 - the type of parameter 1
        P2 - the type of parameter 2
        Parameters:
        stub - the VoidStub2
        p1 - the parameter 1 of Mission
        p2 - the parameter 2 of Mission
        Returns:
        control to the running Mission
      • start

        public <P1,​P2,​R> OngoingReturningMissionRun<R> start​(MissionStub2<P1,​P2,​R> stub,
                                                                         P1 p1,
                                                                         P2 p2)
        Description copied from interface: MissionStubSupport
        Initiates the mission represented by the stub and returns control to the running Mission
        Specified by:
        start in interface MissionStubSupport
        Type Parameters:
        P1 - the type of parameter 1
        P2 - the type of parameter 2
        R - the return type of Mission
        Parameters:
        stub - the MissionStub2
        p1 - the parameter 1 of Mission
        p2 - the parameter 2 of Mission
        Returns:
        control to the running Mission