use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.
the class HttpEntry method setHttpEntryProperties.
public HttpEntry setHttpEntryProperties(SchemaVersion version, String serverBase) {
this.version = version;
this.loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, version);
this.dbEngine = new JanusGraphDBEngine(queryStyle, loader);
getDbEngine().startTransaction();
this.notification = new UEBNotification(loader, loaderFactory, schemaVersions);
if ("true".equals(AAIConfig.get("aai.notification.depth.all.enabled", "true"))) {
this.notificationDepth = AAIProperties.MAXIMUM_DEPTH;
} else {
this.notificationDepth = AAIProperties.MINIMUM_DEPTH;
}
this.serverBase = serverBase;
return this;
}
use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.
the class HttpEntry method setHttpEntryProperties.
public HttpEntry setHttpEntryProperties(SchemaVersion version, UEBNotification notification) {
this.version = version;
this.loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, version);
this.dbEngine = new JanusGraphDBEngine(queryStyle, loader);
this.notification = notification;
if ("true".equals(AAIConfig.get("aai.notification.depth.all.enabled", "true"))) {
this.notificationDepth = AAIProperties.MAXIMUM_DEPTH;
} else {
this.notificationDepth = AAIProperties.MINIMUM_DEPTH;
}
// start transaction on creation
getDbEngine().startTransaction();
return this;
}
use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.
the class HttpEntry method setHttpEntryProperties.
public HttpEntry setHttpEntryProperties(SchemaVersion version, UEBNotification notification, int notificationDepth) {
this.version = version;
this.loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, version);
this.dbEngine = new JanusGraphDBEngine(queryStyle, loader);
this.notification = notification;
this.notificationDepth = notificationDepth;
// start transaction on creation
getDbEngine().startTransaction();
return this;
}
Aggregations