org.ikasan.framework.module.service
Class ModuleServiceImpl

java.lang.Object
  extended by org.ikasan.framework.module.service.ModuleServiceImpl
All Implemented Interfaces:
ModuleService

public class ModuleServiceImpl
extends Object
implements ModuleService

Default implementation of ModuleService

Author:
Ikasan Development Team

Field Summary
static String INITIATOR_SET_STARTUP_TYPE_EVENT_ACTION
          constant for logging a request to change initiator startup type
static String INITIATOR_START_REQUEST_SYSTEM_EVENT_ACTION
          constant for logging an incoming initiator start request
static String INITIATOR_STOP_REQUEST_SYSTEM_EVENT_ACTION
          constant for logging an incoming initiator stop request
 
Constructor Summary
ModuleServiceImpl(ModuleContainer moduleContainer, InitiatorStartupControlDao initiatorStartupControlDao, SystemEventService systemEventService)
          Constructor
 
Method Summary
 InitiatorStartupControl getInitiatorStartupControl(String moduleName, String initiatorName)
          Allows access to the InitiatorStartupControl object for the specified Initiator
 Module getModule(String moduleName)
          Resolves a specified Module by name
 List<Module> getModules()
          Returns all available Modules
 void startInitiator(String moduleName, String initiatorName, String actor)
          Attempts to start an Initiator
 void stopInitiator(String moduleName, String initiatorName, String actor)
          Attempts to stop an Initiator
 void updateInitiatorStartupType(String moduleName, String initiatorName, InitiatorStartupControl.StartupType startupType, String comment, String actor)
          Updates the startup type for the Initiator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIATOR_START_REQUEST_SYSTEM_EVENT_ACTION

public static final String INITIATOR_START_REQUEST_SYSTEM_EVENT_ACTION
constant for logging an incoming initiator start request

See Also:
Constant Field Values

INITIATOR_STOP_REQUEST_SYSTEM_EVENT_ACTION

public static final String INITIATOR_STOP_REQUEST_SYSTEM_EVENT_ACTION
constant for logging an incoming initiator stop request

See Also:
Constant Field Values

INITIATOR_SET_STARTUP_TYPE_EVENT_ACTION

public static final String INITIATOR_SET_STARTUP_TYPE_EVENT_ACTION
constant for logging a request to change initiator startup type

See Also:
Constant Field Values
Constructor Detail

ModuleServiceImpl

public ModuleServiceImpl(ModuleContainer moduleContainer,
                         InitiatorStartupControlDao initiatorStartupControlDao,
                         SystemEventService systemEventService)
Constructor

Parameters:
moduleContainer -
Method Detail

getModules

public List<Module> getModules()
Description copied from interface: ModuleService
Returns all available Modules

Specified by:
getModules in interface ModuleService
Returns:
List of all accessible Modules

getModule

public Module getModule(String moduleName)
Description copied from interface: ModuleService
Resolves a specified Module by name

Specified by:
getModule in interface ModuleService
Returns:
Module named by moduleName

stopInitiator

public void stopInitiator(String moduleName,
                          String initiatorName,
                          String actor)
Description copied from interface: ModuleService
Attempts to stop an Initiator

Specified by:
stopInitiator in interface ModuleService

startInitiator

public void startInitiator(String moduleName,
                           String initiatorName,
                           String actor)
Description copied from interface: ModuleService
Attempts to start an Initiator

Specified by:
startInitiator in interface ModuleService

updateInitiatorStartupType

public void updateInitiatorStartupType(String moduleName,
                                       String initiatorName,
                                       InitiatorStartupControl.StartupType startupType,
                                       String comment,
                                       String actor)
Description copied from interface: ModuleService
Updates the startup type for the Initiator

Specified by:
updateInitiatorStartupType in interface ModuleService

getInitiatorStartupControl

public InitiatorStartupControl getInitiatorStartupControl(String moduleName,
                                                          String initiatorName)
Description copied from interface: ModuleService
Allows access to the InitiatorStartupControl object for the specified Initiator

Specified by:
getInitiatorStartupControl in interface ModuleService
Returns:
InitiatorStartupControl object for the specified Initiator


Copyright © 2007-2012 Ikasan. All Rights Reserved.