Package com.c12e.cortex.profiles.client
Class GeneratedPhoenixClient
- java.lang.Object
-
- com.c12e.cortex.profiles.client.GeneratedPhoenixClient
-
public class GeneratedPhoenixClient extends java.lang.Object
Client to remote phoenix service, exposes a GraphQL API
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratedPhoenixClient(java.lang.String url, java.lang.String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.c12e.cortex.generated.types.Connection
connectionByName(java.lang.String project, java.lang.String name)
Retrieves a Connectioncom.c12e.cortex.generated.types.DataSource
dataSourceByName(java.lang.String project, java.lang.String name)
Retrieves a DataSourcejava.lang.Iterable<com.c12e.cortex.generated.types.Feature>
featureSetBySourceName(java.lang.String project, java.lang.String source)
<T> T
makeRequest(com.netflix.graphql.dgs.client.codegen.GraphQLQuery query, com.netflix.graphql.dgs.client.codegen.BaseProjectionNode responseProjection, java.lang.Class<T> clazz)
Generic request structure, use with catalog extensionscom.c12e.cortex.generated.types.ProfileSchema
profileSchemaByName(java.lang.String project, java.lang.String name)
Retrieves a ProfileSchemajava.lang.Iterable<com.c12e.cortex.generated.types.Feature>
saveFeatureSet(java.lang.String project, java.lang.String source, java.util.List<com.c12e.cortex.phoenix.Feature> features)
Saves the List ofFeature
's associated with given the project and DataSource.
-
-
-
Method Detail
-
makeRequest
public <T> T makeRequest(com.netflix.graphql.dgs.client.codegen.GraphQLQuery query, com.netflix.graphql.dgs.client.codegen.BaseProjectionNode responseProjection, java.lang.Class<T> clazz) throws java.lang.Exception
Generic request structure, use with catalog extensions- Type Parameters:
T
-- Parameters:
query
- - The GraphQL queryresponseProjection
- - The response projectionclazz
- - The response type- Returns:
- The response
- Throws:
java.lang.Exception
-
connectionByName
public com.c12e.cortex.generated.types.Connection connectionByName(java.lang.String project, java.lang.String name)
Retrieves a Connection- Parameters:
project
- the project contained the connectionname
- the connection name with the project- Returns:
- the connection or null
-
dataSourceByName
public com.c12e.cortex.generated.types.DataSource dataSourceByName(java.lang.String project, java.lang.String name)
Retrieves a DataSource- Parameters:
project
- the project contained the dataSourcename
- the dataSource name with the project- Returns:
- the dataSource or null
-
featureSetBySourceName
public java.lang.Iterable<com.c12e.cortex.generated.types.Feature> featureSetBySourceName(java.lang.String project, java.lang.String source)
-
saveFeatureSet
public java.lang.Iterable<com.c12e.cortex.generated.types.Feature> saveFeatureSet(java.lang.String project, java.lang.String source, java.util.List<com.c12e.cortex.phoenix.Feature> features)
Saves the List ofFeature
's associated with given the project and DataSource.- Parameters:
project
- project namesource
- DataSource namefeatures
- list of features- Returns:
- the saved list of features
-
profileSchemaByName
public com.c12e.cortex.generated.types.ProfileSchema profileSchemaByName(java.lang.String project, java.lang.String name)
Retrieves a ProfileSchema- Parameters:
project
- the project contained the profileSchemaname
- the profileSchema name with the project- Returns:
- the profileSchema or null
-
-