|
@@ -199,22 +199,14 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
|
.addTransition(State.STARTING,
|
|
|
- State.START_FAILED,
|
|
|
+ State.INSTALLED,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
|
- .addTransition(State.START_FAILED,
|
|
|
+ .addTransition(State.INSTALLED,
|
|
|
State.STARTING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_RESTART,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.START_FAILED,
|
|
|
- State.STARTING,
|
|
|
- ServiceComponentHostEventType.HOST_SVCCOMP_START,
|
|
|
- new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.START_FAILED,
|
|
|
- State.STOPPING,
|
|
|
- ServiceComponentHostEventType.HOST_SVCCOMP_STOP,
|
|
|
- new ServiceComponentHostOpStartedTransition())
|
|
|
|
|
|
.addTransition(State.STARTED,
|
|
|
State.STARTED,
|
|
@@ -242,18 +234,14 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_STOPPED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.STOPPING,
|
|
|
- State.STOP_FAILED,
|
|
|
+ State.STARTED,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
|
- .addTransition(State.STOP_FAILED,
|
|
|
+ .addTransition(State.STARTED,
|
|
|
State.STOPPING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_RESTART,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.STOP_FAILED,
|
|
|
- State.STOPPING,
|
|
|
- ServiceComponentHostEventType.HOST_SVCCOMP_STOP,
|
|
|
- new ServiceComponentHostOpStartedTransition())
|
|
|
|
|
|
.addTransition(State.UNINSTALLING,
|
|
|
State.UNINSTALLING,
|
|
@@ -264,7 +252,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_SUCCEEDED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.UNINSTALLING,
|
|
|
- State.UNINSTALL_FAILED,
|
|
|
+ State.UNINSTALLING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
@@ -277,10 +265,10 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_SUCCEEDED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.UPGRADING,
|
|
|
- State.UPGRADE_FAILED,
|
|
|
+ State.UPGRADING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
- .addTransition(State.UPGRADE_FAILED,
|
|
|
+ .addTransition(State.UPGRADING,
|
|
|
State.UPGRADING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_UPGRADE,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
@@ -289,11 +277,11 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_UPGRADE,
|
|
|
new ServiceComponentHostOpInProgressTransition())
|
|
|
|
|
|
- .addTransition(State.UNINSTALL_FAILED,
|
|
|
+ .addTransition(State.UNINSTALLING,
|
|
|
State.UNINSTALLING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_RESTART,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.UNINSTALL_FAILED,
|
|
|
+ .addTransition(State.UNINSTALLING,
|
|
|
State.UNINSTALLING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_UNINSTALL,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
@@ -317,15 +305,15 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_SUCCEEDED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.WIPING_OUT,
|
|
|
- State.WIPEOUT_FAILED,
|
|
|
+ State.WIPING_OUT,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
|
- .addTransition(State.WIPEOUT_FAILED,
|
|
|
+ .addTransition(State.WIPING_OUT,
|
|
|
State.WIPING_OUT,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_RESTART,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.WIPEOUT_FAILED,
|
|
|
+ .addTransition(State.WIPING_OUT,
|
|
|
State.WIPING_OUT,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_WIPEOUT,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
@@ -418,10 +406,10 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_SUCCEEDED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.UPGRADING,
|
|
|
- State.UPGRADE_FAILED,
|
|
|
+ State.UPGRADING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
- .addTransition(State.UPGRADE_FAILED,
|
|
|
+ .addTransition(State.UPGRADING,
|
|
|
State.UPGRADING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_UPGRADE,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
@@ -439,15 +427,15 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_SUCCEEDED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.UNINSTALLING,
|
|
|
- State.UNINSTALL_FAILED,
|
|
|
+ State.UNINSTALLING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
|
- .addTransition(State.UNINSTALL_FAILED,
|
|
|
+ .addTransition(State.UNINSTALLING,
|
|
|
State.UNINSTALLING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_RESTART,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.UNINSTALL_FAILED,
|
|
|
+ .addTransition(State.UNINSTALLING,
|
|
|
State.UNINSTALLING,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_UNINSTALL,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
@@ -471,15 +459,15 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_SUCCEEDED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
.addTransition(State.WIPING_OUT,
|
|
|
- State.WIPEOUT_FAILED,
|
|
|
+ State.WIPING_OUT,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_FAILED,
|
|
|
new ServiceComponentHostOpCompletedTransition())
|
|
|
|
|
|
- .addTransition(State.WIPEOUT_FAILED,
|
|
|
+ .addTransition(State.WIPING_OUT,
|
|
|
State.WIPING_OUT,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_OP_RESTART,
|
|
|
new ServiceComponentHostOpStartedTransition())
|
|
|
- .addTransition(State.WIPEOUT_FAILED,
|
|
|
+ .addTransition(State.WIPING_OUT,
|
|
|
State.WIPING_OUT,
|
|
|
ServiceComponentHostEventType.HOST_SVCCOMP_WIPEOUT,
|
|
|
new ServiceComponentHostOpStartedTransition())
|