org.mbari.beholder

Members list

Type members

Classlikes

object AppConfig

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
AppConfig.type
case class Jpeg(videoUrl: URL, elapsedTime: Duration, path: Path, created: Instant, sizeBytes: Option[Long])

Information about the source of a JPEG

Information about the source of a JPEG

Value parameters

created

When the jpeg was created. Used by the cache to determine which items to drop.

elapsedTime

The elapsed time into the video that the jpeg was taken

path

The local path to the jpeg file

sizeBytes

The size of the jpeg file in bytes

videoUrl

The URL to the source video

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Jpeg

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Jpeg.type
class JpegCache(val root: Path, maxCacheSizeMB: Double, cacheClearPct: Double)

In memory cache of paths to Jpegs that were captured. The cache is organized by videoUrl and elpased time into the video. When the cache on disk size exceeds the allowed size, the oldest jpegs are cleared out of the cache and removed from disk. The number of jpegs removed is specified by the cacheClearPct.

In memory cache of paths to Jpegs that were captured. The cache is organized by videoUrl and elpased time into the video. When the cache on disk size exceeds the allowed size, the oldest jpegs are cleared out of the cache and removed from disk. The number of jpegs removed is specified by the cacheClearPct.

Jpegs are expected to be stored in jpegs named as follows: /

Value parameters

cacheClearPct

When the maxCacheSizeMB is receached this, disk will be freed equal to maxCacheSizeMb * cacheClearPct

maxCacheSizeMB

The max allowed on-disk size of the cache

root

The root directory of the cache

Attributes

Supertypes
class Object
trait Matchable
class Any
class JpegCapture(cache: JpegCache)

Attributes

Supertypes
class Object
trait Matchable
class Any
object Main

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Main.type
class MainRunner extends Callable[Int]

Attributes

Supertypes
trait Callable[Int]
class Object
trait Matchable
class Any