Class LocalAzkarraStreamsService

    • Constructor Detail

      • LocalAzkarraStreamsService

        public LocalAzkarraStreamsService()
    • Method Detail

      • listAllKafkaStreamsContainerIds

        public Set<String> listAllKafkaStreamsContainerIds()
        Returns the list of ids for all running Kafka Streams containers.
        Returns:
        a list of string ids.
      • listAllKafkaStreamsApplicationIds

        public Set<String> listAllKafkaStreamsApplicationIds()
        Returns the list of ids for all running Kafka Streams application.
        Returns:
        a list of string ids.
        See Also:
        StreamsConfig.APPLICATION_ID_CONFIG
      • startStreamsTopology

        public ApplicationId startStreamsTopology​(String topologyType,
                                                  String topologyVersion,
                                                  String env,
                                                  Executed executed)
        Creates and starts a new streams job for the specified topology into the specified environment.
        Parameters:
        topologyType - the topology type.
        topologyVersion - the topology topologyVersion.
        env - the environment name.
        executed - the Executed instance.
        Returns:
        the streams application.id
      • getContextConfig

        public Conf getContextConfig()
        Gets the configuration of AzkarraContext.
        Returns:
        a Conf object.
      • addNewEnvironment

        public void addNewEnvironment​(String name,
                                      String type,
                                      Conf conf)
        Adds a new environment to this application.
        Parameters:
        name - the environment name.
        type - the environment type.
        conf - the environment configuration.
      • getStreamsApplicationById

        public KafkaStreamsApplication getStreamsApplicationById​(String id)
        Gets all local and remote streams instances for the specified streams application.
        Parameters:
        id - the streams application id.
        Returns:
        the KafkaStreamsApplication instance..
      • stopStreamsContainer

        public void stopStreamsContainer​(String containerId,
                                         boolean cleanUp)
        Stops the streams instance for the specified container id.
        Parameters:
        containerId - the container id.
        cleanUp - the flag to indicate if the local streams states should be cleaned up.
        See Also:
        StreamsExecutionEnvironment.stop(ContainerId, boolean)
      • restartStreamsContainer

        public void restartStreamsContainer​(String containerId)
        Restarts the streams instance for the specified container id.
        Parameters:
        containerId - the container id.