문제

I am trying to list all existing Database Environments (com.sleepycat.je.Environment) in a given instance of Berkeley DB Java Edition. Cannot find any API or documentation regarding this.

Scanning the subdirectories containing all environments seems a little ugly. Does anyone know how to do it properly ?

도움이 되었습니까?

해결책

An Environment is defined by its home directory only and there's no structure above it, so your only option is indeed to scan all the directories.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top