Enum Class Tm1Seed
- All Implemented Interfaces:
Serializable, Comparable<Tm1Seed>, Constable
Objects the image puts into an empty database on first start (its
TM1_SEED
setting). The samples come from the TM1 install itself, so they're only available where
the install includes them.
A server seeded with IBM's SData sample:
Tm1Source source = Tm1Source.discover().orElseThrow();
// SData's login is admin / apple, and the server must be this version
try (var server = new Tm1ServerContainer(source).withSeed(Tm1Seed.SDATA)
.withExpectedVersion(Tm1Version.parse("11.8.03500.6"))) {
server.start();
Tm1Client tm1 = Tm1Client.builder()
.baseUrl(server.getRestUrl())
.basicAuth(server.getUsername(), server.getPassword())
.build();
try {
// SData's cubes, such as SalesCube
return tm1.cubes()
.modelCubes(ODataQuery.none().select(Cube.NAME))
.map(Cube::name)
.collectList()
.block(WAIT);
}
finally {
tm1.close().block(WAIT); // before the container stops
}
}
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
EMPTY
No objects: an empty database with the loginadminand no password. -
SDATA
IBM's SData sample, with the loginadmin/apple.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-