public class DbUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DbUtils.TitanState |
Constructor and Description |
---|
DbUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanAllAudits() |
static RestResponse |
deleteFromEsDbByPattern(String patternToDelete) |
static DbUtils.TitanState |
getCurrentTitanState() |
static RestResponse |
getFromEsByPattern(String patternToGet) |
fj.data.Either<org.apache.tinkerpop.gremlin.structure.Vertex,Boolean> |
getVertexByUId(String uid) |
static UserAuditJavaObject |
parseAuditRespByAction(String action) |
void |
restoreToTitanState(DbUtils.TitanState titanStateToRestoreTo) |
static String |
retrieveAuditMessagesByPattern(String pattern) |
static void |
setProperties(org.apache.tinkerpop.gremlin.structure.Element element,
Map<String,Object> properties) |
void |
shutDowntitan() |
public static void cleanAllAudits() throws IOException
IOException
public static RestResponse deleteFromEsDbByPattern(String patternToDelete) throws IOException
IOException
public static RestResponse getFromEsByPattern(String patternToGet) throws IOException
IOException
public fj.data.Either<org.apache.tinkerpop.gremlin.structure.Vertex,Boolean> getVertexByUId(String uid)
public static DbUtils.TitanState getCurrentTitanState()
public void restoreToTitanState(DbUtils.TitanState titanStateToRestoreTo)
public void shutDowntitan()
public static void setProperties(org.apache.tinkerpop.gremlin.structure.Element element, Map<String,Object> properties)
public static UserAuditJavaObject parseAuditRespByAction(String action) throws Exception
Exception
public static String retrieveAuditMessagesByPattern(String pattern) throws IOException
IOException
Copyright © 2017. All rights reserved.