@Controller @RequestMapping(value="/admin/api") public class ApiController extends Object
/admin/api URI.| Constructor and Description |
|---|
ApiController() |
| Modifier and Type | Method and Description |
|---|---|
ChannelResponse |
channelByServerDetails(String serverId,
String channelName,
HttpServletResponse response)
Returns the details (configuration and status) for a single channel.
|
ChannelResponse |
channelDetails(String channelName,
HttpServletResponse response)
Returns the details (configuration and status) for a single channel.
|
ChannelsAllResponse |
channelsAll(HttpServletResponse response)
Returns the list of all channels.
|
ChannelsByServerResponse |
channelsByServer(String serverId,
HttpServletResponse response)
Returns the list of channels for the specified server.
|
ChannelsByServerExportResponse |
channelsByServerExport(String serverId,
HttpServletResponse response)
Returns the exported channel configuration for the specified server..
|
ChannelsByServerImportResponse |
channelsByServerImport(String serverId,
ChannelsByServerImportRequest importRequest,
HttpServletResponse response)
Imports the channel configuration for an archive server from a
configuration file.
|
ClusterStatusResponse |
clusterStatus(HttpServletResponse response)
Returns status information about the archiving cluster.
|
RunArchiveConfigurationCommandsResponse |
runArchiveConfigurationCommands(RunArchiveConfigurationCommandsRequest request,
HttpServletResponse response)
Runs archive configuration commands.
|
ServerStatusResponse |
serverStatus()
Returns status information for this server.
|
void |
setArchiveConfigurationService(ArchiveConfigurationService archiveConfigurationService)
Sets the archive configuration service used by this controller.
|
void |
setArchivingService(ArchivingService archivingService)
Sets the archiving service.
|
void |
setCassandraProvider(CassandraProvider cassandraProvider)
Sets the Cassandra provider used by this controller.
|
void |
setChannelInformationCache(ChannelInformationCache channelInformationCache)
Sets the channel information cache.
|
void |
setChannelMetaDataDAO(ChannelMetaDataDAO channelMetaDataDAO)
Sets the DAO for reading and modifying meta-data related to channels.
|
void |
setClusterManagementService(ClusterManagementService clusterManagementService)
Sets the cluster management service used by this controller.
|
void |
setControlSystemSupportRegistry(ControlSystemSupportRegistry controlSystemSupportRegistry)
Sets the control-system support registry.
|
void |
setInterNodeCommunicationService(InterNodeCommunicationService interNodeCommunicationService)
Sets the inter-node communication service.
|
@Autowired public void setArchiveConfigurationService(ArchiveConfigurationService archiveConfigurationService)
archiveConfigurationService - archive configuration service for this server.@Autowired public void setArchivingService(ArchivingService archivingService)
archivingService - archiving service for this server.@Autowired public void setCassandraProvider(CassandraProvider cassandraProvider)
cassandraProvider - Cassandra provider used by the archiving server.@Autowired public void setChannelInformationCache(ChannelInformationCache channelInformationCache)
ChannelMetaDataDAO.ChannelInformation objects from the database without having to
query the database every time. Typically, this method is called
automatically by the Spring container.channelInformationCache - channel information cache for getting
ChannelMetaDataDAO.ChannelInformation objects.@Autowired public void setChannelMetaDataDAO(ChannelMetaDataDAO channelMetaDataDAO)
channelMetaDataDAO - channel meta-data DAO to be used by this object.@Autowired public void setClusterManagementService(ClusterManagementService clusterManagementService)
clusterManagementService - cluster manager used by the archiving server.@Autowired public void setControlSystemSupportRegistry(ControlSystemSupportRegistry controlSystemSupportRegistry)
controlSystemSupportRegistry - control-system support registry for this archiving server.@Autowired public void setInterNodeCommunicationService(InterNodeCommunicationService interNodeCommunicationService)
interNodeCommunicationService - inter-node communication service.@RequestMapping(value="/1.0/channels/by-server/{serverId}/by-name/{channelName}", method=GET) @ResponseBody public ChannelResponse channelByServerDetails(@PathVariable String serverId, @PathVariable String channelName, HttpServletResponse response)
serverId - ID of the server that is supposed to own the channel.channelName - name of the channelresponse - HTTP servlet response. The response is used to send the
appropriate status code in case the requested information
cannot be gathered successfully.null if the request could
not be processed.@RequestMapping(value="/1.0/channels/all/by-name/{channelName}", method=GET) @ResponseBody public ChannelResponse channelDetails(@PathVariable String channelName, HttpServletResponse response)
channelName - name of the channelresponse - HTTP servlet response. The response is used to send the
appropriate status code in case the requested information
cannot be gathered successfully.null if the request could
not be processed.@RequestMapping(value="/1.0/channels/all", method=GET) @ResponseBody public ChannelsAllResponse channelsAll(HttpServletResponse response)
response - HTTP servlet response. The response is used to send the
appropriate status code in case the requested information
cannot be gathered successfully.@RequestMapping(value="/1.0/channels/by-server/{serverId}", method=GET) @ResponseBody public ChannelsByServerResponse channelsByServer(@PathVariable String serverId, HttpServletResponse response)
serverId - ID of the server for which the channels are to be returned.response - HTTP servlet response. The response is used to send the
appropriate status code in case the requested information
cannot be gathered successfully.@RequestMapping(value="/1.0/channels/by-server/{serverId}/export", method=GET) @ResponseBody public ChannelsByServerExportResponse channelsByServerExport(@PathVariable String serverId, HttpServletResponse response)
serverId - ID of the server for which the configuration shall be
returned.response - HTTP servlet response. The response is used to send the
appropriate status code in case the requested information
cannot be gathered successfully.@RequestMapping(value="/1.0/channels/by-server/{serverId}/import", method=POST) @ResponseBody @Secured(value="ROLE_ADMIN") public ChannelsByServerImportResponse channelsByServerImport(@PathVariable String serverId, @RequestBody ChannelsByServerImportRequest importRequest, HttpServletResponse response)
serverId - ID of the server for which the configuration shall be
imported.importRequest - request object specifying the configuration file an other
options that shall be used for the import operation.response - HTTP servlet response. The response is used to send the
appropriate status code in case there is an error.@RequestMapping(value="/1.0/cluster-status") @ResponseBody public ClusterStatusResponse clusterStatus(HttpServletResponse response)
response - HTTP servlet response. The response is used to send the
appropriate status code in case there is an error.@RequestMapping(value="/1.0/run-archive-configuration-commands", method=POST) @ResponseBody @Secured(value="ROLE_ADMIN") public RunArchiveConfigurationCommandsResponse runArchiveConfigurationCommands(@RequestBody RunArchiveConfigurationCommandsRequest request, HttpServletResponse response)
request - request object wrapping the list of archive configuration
commands that shall be run.response - HTTP servlet response. The response is used to send the
appropriate status code in case there is an error.@RequestMapping(value="/1.0/server-status/this-server") @ResponseBody public ServerStatusResponse serverStatus()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.