Permalink
Browse files

service restart

  • Loading branch information...
1 parent a7beec3 commit 95cdfe4e2c3df91922463b43849d14af7b193259 @grze grze committed Apr 20, 2011
Showing with 11 additions and 15 deletions.
  1. +11 −15 clc/modules/wsstack/src/main/java/com/eucalyptus/ws/ServiceDispatchBootstrapper.java
@@ -140,21 +140,17 @@ public boolean load( ) throws Exception {
public boolean start( ) throws Exception {
Component euca = Components.lookup( Eucalyptus.class );
for ( final Component comp : Components.list( ) ) {
- if ( !comp.hasLocalService( ) ) {
- continue;
- } else {
- LOG.info( "start(): " + comp );
- EventRecord.here( ServiceDispatchBootstrapper.class, EventType.COMPONENT_INFO, comp.getName( ), comp.isAvailableLocally( ).toString( ) ).info( );
- for ( final ServiceConfiguration s : comp.lookupServiceConfigurations( ) ) {
- if( !comp.getComponentId( ).hasDispatcher( ) ) {
- continue;
- } else if ( Bootstrap.isCloudController( ) ) {
- try {
- comp.enableTransition( s ).get( );
- break;
- } catch ( Throwable ex ) {
- Exceptions.trace( "start()/enable(): Starting service failed: " + Components.Functions.componentToString( ).apply( comp ), ex );//TODO:GRZE: report error
- }
+ LOG.info( "start(): " + comp );
+ EventRecord.here( ServiceDispatchBootstrapper.class, EventType.COMPONENT_INFO, comp.getName( ), comp.isAvailableLocally( ).toString( ) ).info( );
+ for ( final ServiceConfiguration s : comp.lookupServiceConfigurations( ) ) {
+ if( !comp.getComponentId( ).hasDispatcher( ) ) {
+ continue;
+ } else if ( Bootstrap.isCloudController( ) ) {
+ try {
+ comp.enableTransition( s ).get( );
+ break;
+ } catch ( Throwable ex ) {
+ Exceptions.trace( "start()/enable(): Starting service failed: " + Components.Functions.componentToString( ).apply( comp ), ex );//TODO:GRZE: report error
}
}
}

0 comments on commit 95cdfe4

Please sign in to comment.