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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.graylog2.database.PersistedImpl
fields, id
Fields 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
ModifierConstructorDescriptionStreamImpl
(Map<String, Object> fields) StreamImpl
(Map<String, Object> fields, IndexSet indexSet) protected
StreamImpl
(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) boolean
getTitle()
boolean
isPaused()
void
setContentPack
(String contentPack) void
setDefaultStream
(boolean defaultStream) void
setDescription
(String description) void
setDisabled
(Boolean disabled) void
setIndexSetId
(String indexSetId) void
setMatchingType
(Stream.MatchingType matchingType) void
setRemoveMatchesFromDefaultStream
(boolean removeMatchesFromDefaultStream) void
toString()
Methods inherited from class org.graylog2.database.PersistedImpl
equals, getFields, getId, getObjectId, hashCode
-
Field Details
-
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:
toString
in classPersistedImpl
-
getStreamRules
- Specified by:
getStreamRules
in interfaceStream
-
getOutputs
- Specified by:
getOutputs
in interfaceStream
-
getTitle
-
getDescription
- Specified by:
getDescription
in interfaceStream
-
setTitle
-
setDescription
- Specified by:
setDescription
in interfaceStream
-
getDisabled
- Specified by:
getDisabled
in interfaceStream
-
setDisabled
- Specified by:
setDisabled
in interfaceStream
-
getContentPack
- Specified by:
getContentPack
in interfaceStream
-
setContentPack
- Specified by:
setContentPack
in interfaceStream
-
isPaused
-
asMap
-
asMap
- Specified by:
asMap
in interfacePersisted
- Overrides:
asMap
in classPersistedImpl
-
getValidations
- Specified by:
getValidations
in interfacePersisted
-
getEmbeddedValidations
- Specified by:
getEmbeddedValidations
in interfacePersisted
-
getMatchingType
- Specified by:
getMatchingType
in interfaceStream
-
setMatchingType
- Specified by:
setMatchingType
in interfaceStream
-
isDefaultStream
public boolean isDefaultStream()- Specified by:
isDefaultStream
in interfaceStream
-
setDefaultStream
public void setDefaultStream(boolean defaultStream) - Specified by:
setDefaultStream
in interfaceStream
-
getRemoveMatchesFromDefaultStream
public boolean getRemoveMatchesFromDefaultStream()- Specified by:
getRemoveMatchesFromDefaultStream
in interfaceStream
-
setRemoveMatchesFromDefaultStream
public void setRemoveMatchesFromDefaultStream(boolean removeMatchesFromDefaultStream) - Specified by:
setRemoveMatchesFromDefaultStream
in interfaceStream
-
getIndexSet
- Specified by:
getIndexSet
in interfaceStream
-
getIndexSetId
- Specified by:
getIndexSetId
in interfaceStream
-
setIndexSetId
- Specified by:
setIndexSetId
in interfaceStream
-