Package org.graylog2.streams
Class StreamImpl
java.lang.Object
org.graylog2.database.PersistedImpl
org.graylog2.streams.StreamImpl
Representing a single stream from the streams collection. Also provides method
to get all streams of this collection.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog2.plugin.streams.Stream
Stream.MatchingType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.graylog2.database.PersistedImpl
fields, idFields inherited from interface org.graylog2.plugin.streams.Stream
ALL_SYSTEM_STREAM_IDS, DEFAULT_EVENT_STREAM_IDS, DEFAULT_EVENTS_STREAM_ID, DEFAULT_STREAM_ID, DEFAULT_SYSTEM_EVENTS_STREAM_ID, FAILURES_STREAM_ID, NON_EDITABLE_STREAM_IDS, NON_MESSAGE_STREAM_IDS -
Constructor Summary
ConstructorsModifierConstructorDescriptionStreamImpl(Map<String, Object> fields) StreamImpl(Map<String, Object> fields, IndexSet indexSet) protectedStreamImpl(org.bson.types.ObjectId id, Map<String, Object> fields) StreamImpl(org.bson.types.ObjectId id, Map<String, Object> fields, List<StreamRule> streamRules, Set<Output> outputs, IndexSet indexSet) -
Method Summary
Modifier and TypeMethodDescriptionasMap()asMap(List<StreamRule> streamRules) booleangetTitle()booleanisPaused()voidsetContentPack(String contentPack) voidsetDefaultStream(boolean defaultStream) voidsetDescription(String description) voidsetDisabled(Boolean disabled) voidsetIndexSetId(String indexSetId) voidsetMatchingType(Stream.MatchingType matchingType) voidsetRemoveMatchesFromDefaultStream(boolean removeMatchesFromDefaultStream) voidtoString()Methods inherited from class org.graylog2.database.PersistedImpl
equals, getFields, getId, getObjectId, hashCode
-
Field Details
-
FIELD_ID
- See Also:
-
FIELD_TITLE
- See Also:
-
FIELD_DESCRIPTION
- See Also:
-
FIELD_RULES
- See Also:
-
FIELD_OUTPUTS
- See Also:
-
FIELD_CONTENT_PACK
- See Also:
-
FIELD_DISABLED
- See Also:
-
FIELD_CREATED_AT
- See Also:
-
FIELD_CREATOR_USER_ID
- See Also:
-
FIELD_MATCHING_TYPE
- See Also:
-
FIELD_DEFAULT_STREAM
- See Also:
-
FIELD_REMOVE_MATCHES_FROM_DEFAULT_STREAM
- See Also:
-
FIELD_INDEX_SET_ID
- See Also:
-
EMBEDDED_ALERT_CONDITIONS
- See Also:
-
-
Constructor Details
-
StreamImpl
-
StreamImpl
-
StreamImpl
-
StreamImpl
-
-
Method Details
-
toString
- Overrides:
toStringin classPersistedImpl
-
getStreamRules
- Specified by:
getStreamRulesin interfaceStream
-
getOutputs
- Specified by:
getOutputsin interfaceStream
-
getTitle
-
getDescription
- Specified by:
getDescriptionin interfaceStream
-
setTitle
-
setDescription
- Specified by:
setDescriptionin interfaceStream
-
getDisabled
- Specified by:
getDisabledin interfaceStream
-
setDisabled
- Specified by:
setDisabledin interfaceStream
-
getContentPack
- Specified by:
getContentPackin interfaceStream
-
setContentPack
- Specified by:
setContentPackin interfaceStream
-
isPaused
-
asMap
-
asMap
- Specified by:
asMapin interfacePersisted- Overrides:
asMapin classPersistedImpl
-
getValidations
- Specified by:
getValidationsin interfacePersisted
-
getEmbeddedValidations
- Specified by:
getEmbeddedValidationsin interfacePersisted
-
getMatchingType
- Specified by:
getMatchingTypein interfaceStream
-
setMatchingType
- Specified by:
setMatchingTypein interfaceStream
-
isDefaultStream
public boolean isDefaultStream()- Specified by:
isDefaultStreamin interfaceStream
-
setDefaultStream
public void setDefaultStream(boolean defaultStream) - Specified by:
setDefaultStreamin interfaceStream
-
getRemoveMatchesFromDefaultStream
public boolean getRemoveMatchesFromDefaultStream()- Specified by:
getRemoveMatchesFromDefaultStreamin interfaceStream
-
setRemoveMatchesFromDefaultStream
public void setRemoveMatchesFromDefaultStream(boolean removeMatchesFromDefaultStream) - Specified by:
setRemoveMatchesFromDefaultStreamin interfaceStream
-
getIndexSet
- Specified by:
getIndexSetin interfaceStream
-
getIndexSetId
- Specified by:
getIndexSetIdin interfaceStream
-
setIndexSetId
- Specified by:
setIndexSetIdin interfaceStream
-