Package io.antmedia.datastore.db
Class MapDBStore
java.lang.Object
io.antmedia.datastore.db.DataStore
io.antmedia.datastore.db.MapBasedDataStore
io.antmedia.datastore.db.MapDBStore
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtomicBoolean
private static final String
private static final String
private org.mapdb.DB
private static final String
protected static org.slf4j.Logger
private static final String
private static final String
private static final String
private long
private static final String
private io.vertx.core.Vertx
private static final String
private static final String
Fields inherited from class io.antmedia.datastore.db.MapBasedDataStore
conferenceRoomMap, connectionEventsMap, dbName, detectionMap, gson, INCONSISTENCY_MESSAGE, map, subscriberMap, subscriberMetadataMap, tokenMap, vodMap, webRTCViewerMap
Fields inherited from class io.antmedia.datastore.db.DataStore
appSettings, available, MAX_ITEM_IN_ONE_LIST, REPLACE_CHARS_REGEX, TOTAL_WEBRTC_VIEWER_COUNT_CACHE_TIME, totalWebRTCViewerCount, totalWebRTCViewerCountLastUpdateTime
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearStreamInfoList
(String streamId) Remove the stream info list from dbvoid
close
(boolean deleteDB) Closes the databaselong
getLocalLiveBroadcastCount
(String hostAddress) getLocalLiveBroadcasts
(String hostAddress) getStreamInfoList
(String streamId) Returns stream info list added to dbvoid
saveStreamInfo
(StreamInfo streamInfo) Saves the stream info to the dbMethods inherited from class io.antmedia.datastore.db.MapBasedDataStore
addConnectionEvent, addEndpoint, addSubscriber, addSubTrack, addVod, blockSubscriber, createP2PConnection, delete, deleteP2PConnection, deleteSubscriber, deleteToken, deleteVod, deleteWebRTCViewerInfo, fetchUserVodList, get, getActiveBroadcastCount, getActiveBroadcastList, getActiveSubtracks, getActiveSubtracksCount, getBroadcastCount, getBroadcastFromMap, getBroadcastList, getBroadcastListV2, getConferenceRoomMap, getConnectionEvents, getDetection, getDetectionList, getExternalStreamsList, getObjectDetectedTotal, getP2PConnection, getPartialBroadcastNumber, getPartialVodNumber, getReturningConnectionEventsList, getSubscriber, getSubscriberMetaData, getSubtrackCount, getSubtracks, getSubtracks, getToken, getTotalBroadcastNumber, getTotalVodNumber, getTotalWebRTCViewersCount, getVoD, getVodList, getVodListV2, getWebRTCViewerList, hasSubtracks, listAllSubscribers, listAllTokens, migrateConferenceRoomsToBroadcasts, putSubscriberMetaData, removeAllEndpoints, removeEndpoint, removeSubTrack, resetBroadcasts, resetSubscribersConnectedStatus, revokeSubscribers, revokeTokens, save, saveDetection, saveToken, saveViewerInfo, setBroadcastToMap, setMp4Muxing, setWebMMuxing, updateBroadcastFields, updateDASHViewerCountLocal, updateHLSViewerCountLocal, updateRtmpViewerCountLocal, updateStatus, updateStreamMetaData, updateVoDProcessStatus, updateWebRTCViewerCountLocal, validateToken
Methods inherited from class io.antmedia.datastore.db.DataStore
addQueryTime, addSubscriberConnectionEvent, broadcastToConference, conferenceToBroadcast, conferenceUpdateToBroadcastUpdate, get, getActiveBroadcastCount, getActiveBroadcastList, getAverageQueryTimeMs, getBroadcastCount, getConnectionEventListFromCollection, getDetection, getDetectionList, getExecutedQueryCount, getObjectDetectedTotal, getSubscriber, getToken, getTotalBroadcastNumber, getTotalVodNumber, getTotalWebRTCViewersCount, getVoD, getVodListV2, getWebRTCViewerList, handleConnectionEvent, isAvailable, isSubscriberConnected, listAllSubscribers, listAllSubscriberStats, listAllTokens, saveBroadcast, searchOnServer, searchOnServerVod, searchOnWebRTCViewerInfo, setAppSettings, showWarningIfElapsedTimeIsMoreThanThreshold, sortAndCropBroadcastList, sortAndCropVodList, sortAndCropWebRTCViewerInfoList, updateDASHViewerCount, updateHLSViewerCount, updateRtmpViewerCount, updateStreamInfo, updateSubscriberBitrateEvent, updateWebRTCViewerCount
-
Field Details
-
db
private org.mapdb.DB db -
vertx
private io.vertx.core.Vertx vertx -
timerId
private long timerId -
committing
-
logger
protected static org.slf4j.Logger logger -
MAP_NAME
- See Also:
-
VOD_MAP_NAME
- See Also:
-
DETECTION_MAP_NAME
- See Also:
-
TOKEN
- See Also:
-
SUBSCRIBER
- See Also:
-
CONFERENCE_ROOM_MAP_NAME
- See Also:
-
WEBRTC_VIEWER
- See Also:
-
SUBSCRIBER_METADATA
- See Also:
-
CONNECTION_EVENTS
- See Also:
-
-
Constructor Details
-
MapDBStore
-
-
Method Details
-
close
public void close(boolean deleteDB) Description copied from class:DataStore
Closes the database -
getLocalLiveBroadcastCount
- Specified by:
getLocalLiveBroadcastCount
in classDataStore
-
getLocalLiveBroadcasts
- Specified by:
getLocalLiveBroadcasts
in classDataStore
-
clearStreamInfoList
Description copied from class:DataStore
Remove the stream info list from db- Overrides:
clearStreamInfoList
in classMapBasedDataStore
-
getStreamInfoList
Description copied from class:DataStore
Returns stream info list added to db- Overrides:
getStreamInfoList
in classMapBasedDataStore
- Returns:
-
saveStreamInfo
Description copied from class:DataStore
Saves the stream info to the db- Overrides:
saveStreamInfo
in classMapBasedDataStore
-