Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lifecycle] OnStreaming event #160

Closed
phodal opened this issue Dec 14, 2024 · 0 comments
Closed

[Lifecycle] OnStreaming event #160

phodal opened this issue Dec 14, 2024 · 0 comments

Comments

@phodal
Copy link
Owner

phodal commented Dec 14, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
Maybe Support for

  • Streaming Diff
  • Streaming Write
  • Streaming Graph
  • Streaming Highlight

Also for:

  • Log Content
  • Redact Data?

Additional context

phodal added a commit that referenced this issue Dec 16, 2024
…160

Renames the `PostProcessor` modules to `post` and updates all related imports across the project to reflect the new package structure.
phodal added a commit that referenced this issue Dec 16, 2024
…cessorSignature #160

- Remove `PostProcessorFuncSign` and `StreamingProcessorFuncSign` usages.
- Introduce `LifecycleProcessorSignature` for middleware lifecycle management.
- Update related files and tests to use the new signature.
phodal added a commit that referenced this issue Dec 17, 2024
…ngService #160

- Introduced a new StreamingServiceProvider interface in core module for handling streaming data.
- Added OnStreamingService class in shirelang module to manage streaming service registrations.
- Updated core XML configuration to include new streamingService extension point.
phodal added a commit that referenced this issue Dec 17, 2024
…ification #160

- Refactor `map` to store `LifecycleProcessorSignature` and `StreamingServiceProvider`.
- Add methods for registering, unregistering, and listing streaming services.
- Implement notification and completion handlers for all registered services.
phodal added a commit that referenced this issue Dec 17, 2024
… API #160

- Modified `StreamingServiceProvider` to include new methods and parameter changes.
- Added `ShireConstants` to manage output directories.
- Created `LoggingStreamingService` to log streaming data.
- Refactored `OnStreamingService` for better error handling and service management.
- Updated XML configuration to include new streaming service.
- Adjusted various files to integrate new streaming service and handle project context.
@phodal phodal closed this as completed in 5e61991 Dec 17, 2024
phodal added a commit that referenced this issue Dec 18, 2024
…160

- Add `ShireConsoleViewBase` parameter to `onStart` methods in streaming service interfaces and implementations.
- Update `OnStreamingService` to accept and pass `ShireConsoleViewBase` to registered streaming services.
- Modify `ShireRunner` to pass console instance when registering streaming services.
- Add documentation for enum entries in `PostProcessorType.kt`.
phodal added a commit that referenced this issue Dec 18, 2024
…erface #160

Add a new TimingStreamingService to log the start and end times for each lifecycle. This change also includes a modification to the StreamingServiceProvider interface to accommodate the new service. The TimingStreamingService not only improves the monitoring capabilities but also provides feedback on the duration of each lifecycle phase.

The refactored `onStreaming` method in `StreamingServiceProvider.kt` now includes a dummy implementation to maintain consistency with other lifecycle methods, which was previously missing.

```plaintext
- Update StreamingServiceProvider.kt to include a method body for onStreaming.
- Introduce TimingStreamingService to log timing information for lifecycle phases.
- Enhance com.phodal.shirecore.xml to include the new TimingStreamingService.
```
phodal added a commit that referenced this issue Dec 18, 2024


Add the ProfilingStreamingService to monitor memory usage during streaming processes. Update the OnStreamingService class to manage the new service and modify the TimingStreamingService to improve timing logs. Additionally, update the project's documentation to include the new profiling feature.

```diff
- modify files in 'core' and 'docs' to introduce ProfilingStreamingService
- enhance OnStreamingService for new service management
- improve TimingStreamingService logging
- update project documentation to reflect new profiling capability
```
phodal added a commit that referenced this issue Dec 18, 2024
…service output #160

Add a new lifecycle hook 'onCreated' for streaming service initialization. Enhance the TimingStreamingService to include line breaks in console output for better readability.

- Initialize streaming services with 'onCreated' method.
- Update TimingStreamingService to print start and end timing with new lines.
- Improve console output readability for timing information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant