Deprecated API
Contents
-
Terminally Deprecated Elements
-
Deprecated InterfacesInterfaceDescriptionPlease use the generic org.graylog2.cluster.nodes.NodeService specifying the type of node to be returned (either server or data node).use
MongoCollections
as an entrypoint for interacting with MongoDB.
-
Deprecated ClassesClassDescriptionNeeded only by migrations.Please use the appropriate enums in this package rather than this collection of stringsUse
MongoJackObjectMapperProvider
directly.This is left for compatibility reasons, delegating calls to org.graylog2.cluster.nodes.NodeService<ServerNodeEntity>useMongoCollections
as an entrypoint for interacting with MongoDB.useMongoCollections
as an entrypoint for interacting with MongoDB.useMongoCollections
as an entrypoint for interacting with MongoDB.useMongoCollections
as an entrypoint for interacting with MongoDB.useMongoCollections
as an entrypoint for interacting with MongoDB.Please useThrottleableTransport2
insteadShutting down nodes using an API request is discouraged in favor of using a service manager to control the server process.shutting down the node using an API request is discouraged in favor of using a service manager to control the server process.UseProxiedResource.NodeResponse
instead.useMongoCollections
as an entrypoint for interacting with MongoDB.useMongoCollections
as an entrypoint for interacting with MongoDB.
-
Deprecated Enum Classes
-
Deprecated Record Classes
-
Deprecated Annotation Interfaces
-
Deprecated FieldsFieldDescriptionUse
RuleLangLexer.VOCABULARY
instead.UseRuleLangParser.VOCABULARY
instead.This was used in the legacy collector/sidecar system and contained the database ID of the collector input.This was used with the now removed radio system and contained the ID of a radio node. TODO: Due to be removed in Graylog 3.xThis was used with the now removed radio system and contained the input ID of a radio node. TODO: Due to be removed in Graylog 3.x
-
Deprecated MethodsMethodDescriptionThis method won't be called by the persistence layer anymore.Use
Buffers.waitForEmptyBuffers(EnumSet)
insteadUseLeaderElectionService.isLeader()
orNode.isLeader()
instead.We will serialize the field to the same value asExposedConfiguration.staleLeaderTimeout()
for backwards compatibility but ignore it on deserialization.Use getStaleLeaderTimeout insteadUseConfiguration.isLeader()
instead.UseConfiguration.setIsLeader(boolean)
insteadDBSort
is deprecated. Consider usingSorts
instead.DBSort
is deprecated. Consider usingSorts
instead.This method is only meant as an interim solution. Rewrite your deprecated MongoJack objects so that you don't have to use it.useRawMessage.getMessageQueueId()
insteadUseMessage.getMessageQueueId()
instead.UsePeriodical.leaderOnly()
instead.Preferably useServerStatus.awaitRunning()
instead, which is interruptible.UseTools.nowUTC()
instead.Use the paginated call insteadIf you really need the root user, useUserService.getRootUser()
instead.
-
Deprecated ConstructorsConstructorDescription
-
Deprecated Enum ConstantsEnum ConstantDescriptionUse
LeaderElectionService.isLeader()
to determine if the node currently acts as a leader, if you absolutely must.
DbEntity
instead