@Component(value="artifact-cassandra-dao") public class ArtifactCassandraDao extends CassandraDao
client, manager, session
Constructor and Description |
---|
ArtifactCassandraDao() |
Modifier and Type | Method and Description |
---|---|
CassandraOperationStatus |
deleteAllArtifacts()
---------for use in JUnit only--------------- the method deletes all the
tables in the audit keyspace
|
CassandraOperationStatus |
deleteArtifact(String artifactId) |
fj.data.Either<ESArtifactData,CassandraOperationStatus> |
getArtifact(String artifactId) |
void |
init() |
fj.data.Either<Boolean,CassandraOperationStatus> |
isTableEmpty(String tableName)
the method checks if the given table is empty in the artifact keyspace
|
CassandraOperationStatus |
saveArtifact(ESArtifactData artifact) |
@PostConstruct public void init()
public CassandraOperationStatus saveArtifact(ESArtifactData artifact)
public fj.data.Either<ESArtifactData,CassandraOperationStatus> getArtifact(String artifactId)
public CassandraOperationStatus deleteArtifact(String artifactId)
public CassandraOperationStatus deleteAllArtifacts()
public fj.data.Either<Boolean,CassandraOperationStatus> isTableEmpty(String tableName)
isTableEmpty
in class CassandraDao
tableName
- the name of the table we want to checkCopyright © 2017. All rights reserved.