Package io.molr.mole.core.support
Class MissionControlSupport
- java.lang.Object
-
- io.molr.mole.core.support.MissionControlSupport
-
- All Implemented Interfaces:
MissionStubSupport
public class MissionControlSupport extends 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OngoingMissionRun
control(MissionHandle handle)
OngoingMissionRun
control(reactor.core.publisher.Mono<MissionHandle> handle)
static MissionControlSupport
from(Mole mole)
OngoingMissionRun
start(Mission mission, Map<String,Object> missionParameters)
<R> OngoingReturningMissionRun<R>
start(MissionStub0<R> stub)
Initiates the mission represented by the stub and returns control to the runningMission
<P1,R>
OngoingReturningMissionRun<R>start(MissionStub1<P1,R> stub, P1 p1)
Initiates the mission represented by the stub and returns control to the runningMission
<P1,P2,R>
OngoingReturningMissionRun<R>start(MissionStub2<P1,P2,R> stub, P1 p1, P2 p2)
Initiates the mission represented by the stub and returns control to the runningMission
OngoingMissionRun
start(VoidStub0 stub)
Initiates the mission represented by the stub and returns control to the runningMission
<P1> OngoingMissionRun
start(VoidStub1<P1> stub, P1 p1)
Initiates the mission represented by the stub and returns control to the runningMission
<P1,P2>
OngoingMissionRunstart(VoidStub2<P1,P2> stub, P1 p1, P2 p2)
Initiates the mission represented by the stub and returns control to the runningMission
OngoingMissionRun
start(String missionName, Map<String,Object> missionParameters)
-
-
-
Method Detail
-
from
public static MissionControlSupport from(Mole mole)
- Parameters:
mole
- theMole
- Returns:
- an instance of
MissionControlSupport
with specifiedMole
-
start
public OngoingMissionRun start(Mission mission, Map<String,Object> missionParameters)
-
start
public OngoingMissionRun start(String missionName, Map<String,Object> missionParameters)
-
control
public OngoingMissionRun control(reactor.core.publisher.Mono<MissionHandle> handle)
- Parameters:
handle
- theMissionHandle
to the runningMission
- Returns:
- control to the running
Mission
represented by the argument
-
control
public OngoingMissionRun control(MissionHandle handle)
- Parameters:
handle
- theMissionHandle
to the runningMission
- Returns:
- control to the running
Mission
represented by the argument
-
start
public OngoingMissionRun start(VoidStub0 stub)
Description copied from interface:MissionStubSupport
Initiates the mission represented by the stub and returns control to the runningMission
- Specified by:
start
in interfaceMissionStubSupport
- Parameters:
stub
- theVoidStub0
- Returns:
- control to the running
Mission
-
start
public <R> OngoingReturningMissionRun<R> start(MissionStub0<R> stub)
Description copied from interface:MissionStubSupport
Initiates the mission represented by the stub and returns control to the runningMission
- Specified by:
start
in interfaceMissionStubSupport
- Type Parameters:
R
- the return type ofMission
- Parameters:
stub
- theMissionStub0
- Returns:
- control to the running
Mission
-
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 runningMission
- Specified by:
start
in interfaceMissionStubSupport
- Type Parameters:
P1
- the type of parameter 1- Parameters:
stub
- theVoidStub1
p1
- the parameter 1 ofMission
- 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 runningMission
- Specified by:
start
in interfaceMissionStubSupport
- Type Parameters:
P1
- the type of parameter 1R
- the return type ofMission
- Parameters:
stub
- theMissionStub1
p1
- the parameter 1 ofMission
- 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 runningMission
-
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 runningMission
- Specified by:
start
in interfaceMissionStubSupport
- Type Parameters:
P1
- the type of parameter 1P2
- the type of parameter 2R
- the return type ofMission
- Parameters:
stub
- theMissionStub2
p1
- the parameter 1 ofMission
p2
- the parameter 2 ofMission
- Returns:
- control to the running
Mission
-
-