public class CommandManagerServiceImpl extends java.lang.Object implements CommandManagerService
Constructor and Description |
---|
CommandManagerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createCommand(java.lang.String commandConfigurationType,
javax.management.AttributeList properties)
Create a new Command.
|
void |
deleteCommand(java.lang.String commandConfigurationID)
Delete a command configuration.
|
java.util.Set<CommandConfigFactoryDTO> |
getCommandConfigFactories()
This method gets the available command types on the edge server and the
ID of the ReaderFactory that the command type works with.
|
java.util.Set<CommandConfigFactoryDTO> |
getCommandConfigFactoriesByReaderID(java.lang.String readerFactoryID)
Get all the CommandConfigFactoryID associated with a readerFactoryID.
|
CommandConfigFactoryDTO |
getCommandConfigFactory(java.lang.String commandfactoryID)
Get the CommandConfigurationFactory
|
CommandConfigurationDTO |
getCommandConfiguration(java.lang.String commandConfigurationID)
Gets the DTO for a given Command Configuration.
|
javax.management.MBeanInfo |
getCommandDescription(java.lang.String commandConfigurationType)
Gets the meta information necessary to construct a new Command.
|
java.util.Set<CommandConfigurationDTO> |
getCommands()
Gets the DTOs for configured commands.
|
void |
setCommandDAO(CommandDAO commandDAO)
Setter method used by spring
|
void |
setCommandProperties(java.lang.String commandConfigurationID,
javax.management.AttributeList properties)
Sets the properties of a Command.
|
void |
setConfigurationService(ConfigurationService configurationService) |
public void setCommandDAO(CommandDAO commandDAO)
commandDAO
- the commandDAO to setpublic void setConfigurationService(ConfigurationService configurationService)
configurationService
- the configurationService to setpublic java.lang.String createCommand(java.lang.String commandConfigurationType, javax.management.AttributeList properties)
CommandManagerService
createCommand
in interface CommandManagerService
commandConfigurationType
- The type of the Command to makeproperties
- the properties of a Commandpublic void deleteCommand(java.lang.String commandConfigurationID)
CommandManagerService
deleteCommand
in interface CommandManagerService
public javax.management.MBeanInfo getCommandDescription(java.lang.String commandConfigurationType)
CommandManagerService
getCommandDescription
in interface CommandManagerService
commandConfigurationType
- the type of command to makepublic java.util.Set<CommandConfigFactoryDTO> getCommandConfigFactories()
CommandManagerService
getCommandConfigFactories
in interface CommandManagerService
public CommandConfigFactoryDTO getCommandConfigFactory(java.lang.String commandfactoryID)
CommandManagerService
getCommandConfigFactory
in interface CommandManagerService
public java.util.Set<CommandConfigFactoryDTO> getCommandConfigFactoriesByReaderID(java.lang.String readerFactoryID)
CommandManagerService
getCommandConfigFactoriesByReaderID
in interface CommandManagerService
public java.util.Set<CommandConfigurationDTO> getCommands()
CommandManagerService
getCommands
in interface CommandManagerService
public CommandConfigurationDTO getCommandConfiguration(java.lang.String commandConfigurationID)
CommandManagerService
getCommandConfiguration
in interface CommandManagerService
commandConfigurationID
- The ID of the commandConfiguration to getpublic void setCommandProperties(java.lang.String commandConfigurationID, javax.management.AttributeList properties)
CommandManagerService
setCommandProperties
in interface CommandManagerService
commandConfigurationID
- the ID of the command to setproperties
- the new properties of the command