Class CloudServiceLogEntryEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.service.CloudServiceEvent
eu.cloudnetservice.driver.event.events.service.CloudServiceLogEntryEvent
An event being fired when a service prints out a message to stdout or stderr and the service logging is activated.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents a type of std stream. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final CloudServiceLogEntryEvent.StreamTypeFields inherited from class eu.cloudnetservice.driver.event.events.service.CloudServiceEvent
serviceInfo -
Constructor Summary
ConstructorsConstructorDescriptionCloudServiceLogEntryEvent(@NonNull ServiceInfoSnapshot info, @NonNull String line, @NonNull CloudServiceLogEntryEvent.StreamType type) Constructs a new cloud log entry service event. -
Method Summary
Modifier and TypeMethodDescriptionline()Get the line which was printed to either stdout or stderr by the service.Get the type of stream from which the log line is coming.Methods inherited from class eu.cloudnetservice.driver.event.events.service.CloudServiceEvent
serviceInfo
-
Field Details
-
line
-
streamType
-
-
Constructor Details
-
CloudServiceLogEntryEvent
public CloudServiceLogEntryEvent(@NonNull @NonNull ServiceInfoSnapshot info, @NonNull @NonNull String line, @NonNull @NonNull CloudServiceLogEntryEvent.StreamType type) Constructs a new cloud log entry service event.- Parameters:
info- the service info associated with this event.line- the line printed out one of the std streams.type- the type of stream from which the line comes.- Throws:
NullPointerException- if either the service, line or stream type is null.
-
-
Method Details
-
line
-
streamType
Get the type of stream from which the log line is coming.- Returns:
- the type of stream from which the log line is coming.
-