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
FieldsModifier and TypeFieldDescriptionprivate AtomicBooleanprivate static final Stringprivate static final Stringprivate org.mapdb.DBprivate static final Stringprotected static org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static final Stringprivate longprivate static final Stringprivate io.vertx.core.Vertxprivate static final Stringprivate static final StringFields inherited from class io.antmedia.datastore.db.MapBasedDataStore
conferenceRoomMap, connectionEventsMap, dbName, detectionMap, gson, INCONSISTENCY_MESSAGE, map, subscriberMap, subscriberMetadataMap, tokenMap, vodMap, webRTCViewerMapFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearStreamInfoList(String streamId) Remove the stream info list from dbvoidclose(boolean deleteDB) Closes the databaselonggetLocalLiveBroadcastCount(String hostAddress) getLocalLiveBroadcasts(String hostAddress) getStreamInfoList(String streamId) Returns stream info list added to dbvoidsaveStreamInfo(StreamInfo streamInfo) Saves the stream info to the dbMethods inherited from class io.antmedia.datastore.db.MapBasedDataStore
addConnectionEvent, addEndpoint, addSubscriber, addVod, blockSubscriber, createP2PConnection, delete, deleteP2PConnection, deleteSubscriber, deleteToken, deleteVod, fetchUserVodList, get, getActiveBroadcastCount, getActiveBroadcastList, getActiveSubtracks, getActiveSubtracks, getActiveSubtracksCount, getBroadcastFromMap, getBroadcastList, getBroadcastListV2, getConferenceRoomMap, getConnectedSubscriberCount, getConnectedSubscribers, getConnectionEvents, getExternalStreamsList, getP2PConnection, getPartialBroadcastNumber, getPartialVodNumber, getReturningConnectionEventsList, getSubscriber, getSubscriberMetaData, getSubtrackCount, getSubtracks, getSubtracks, getToken, getTotalBroadcastNumber, getTotalVodNumber, getTotalWebRTCViewersCount, getVoD, getVodList, getVodListV2, hasSubtracks, listAllSubscribers, listAllTokens, putSubscriberMetaData, removeAllEndpoints, removeEndpoint, resetBroadcasts, resetSubscribersConnectedStatus, revokeSubscribers, revokeTokens, save, saveToken, setBroadcastToMap, setMp4Muxing, setWebMMuxing, updateBroadcastFields, updateDASHViewerCountLocal, updateHLSViewerCountLocal, updateRtmpViewerCountLocal, updateStatus, updateStreamMetaData, updateVoDProcessStatus, updateWebRTCViewerCountLocal, validateTokenMethods inherited from class io.antmedia.datastore.db.DataStore
addQueryTime, addSubscriberConnectionEvent, get, getActiveBroadcastCount, getActiveBroadcastList, getAverageQueryTimeMs, getBroadcastCount, getConnectionEventListFromCollection, getExecutedQueryCount, getSubscriber, getToken, getTotalBroadcastNumber, getTotalVodNumber, getTotalWebRTCViewersCount, getVoD, getVodListV2, handleConnectionEvent, isAvailable, isSubscriberConnected, listAllSubscribers, listAllTokens, saveBroadcast, searchOnServer, searchOnServerVod, setAppSettings, showWarningIfElapsedTimeIsMoreThanThreshold, sortAndCropBroadcastList, sortAndCropVodList, 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:DataStoreCloses the database -
getLocalLiveBroadcastCount
- Specified by:
getLocalLiveBroadcastCountin classDataStore
-
getLocalLiveBroadcasts
- Specified by:
getLocalLiveBroadcastsin classDataStore
-
clearStreamInfoList
Description copied from class:DataStoreRemove the stream info list from db- Overrides:
clearStreamInfoListin classMapBasedDataStore
-
getStreamInfoList
Description copied from class:DataStoreReturns stream info list added to db- Overrides:
getStreamInfoListin classMapBasedDataStore- Returns:
-
saveStreamInfo
Description copied from class:DataStoreSaves the stream info to the db- Overrides:
saveStreamInfoin classMapBasedDataStore
-