Tabnine Logo
FlowConfigClient.deleteFlowConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteFlowConfig
method
in
org.apache.gobblin.service.FlowConfigClient

Best Java code snippets using org.apache.gobblin.service.FlowConfigClient.deleteFlowConfig (Showing top 3 results out of 315)

origin: apache/incubator-gobblin

@Test (dependsOnMethods = "testUpdate")
public void testDelete() throws Exception {
 FlowId flowId = new FlowId().setFlowGroup(TEST_GROUP_NAME).setFlowName(TEST_FLOW_NAME);
 // make sure flow config exists
 FlowConfig flowConfig = this.flowConfigClient.getFlowConfig(flowId);
 Assert.assertEquals(flowConfig.getId().getFlowGroup(), TEST_GROUP_NAME);
 Assert.assertEquals(flowConfig.getId().getFlowName(), TEST_FLOW_NAME);
 this.flowConfigClient.deleteFlowConfig(flowId);
 try {
  this.flowConfigClient.getFlowConfig(flowId);
 } catch (RestLiResponseException e) {
  Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404);
  return;
 }
 Assert.fail("Get should have gotten a 404 error");
}
origin: apache/incubator-gobblin

@Test (dependsOnMethods = "testUpdate")
public void testDelete() throws Exception {
 logger.info("+++++++++++++++++++ testDelete START");
 FlowId flowId = new FlowId().setFlowGroup(TEST_GROUP_NAME_1).setFlowName(TEST_FLOW_NAME_1);
 // make sure flow config exists
 FlowConfig flowConfig = this.node1FlowConfigClient.getFlowConfig(flowId);
 Assert.assertEquals(flowConfig.getId().getFlowGroup(), TEST_GROUP_NAME_1);
 Assert.assertEquals(flowConfig.getId().getFlowName(), TEST_FLOW_NAME_1);
 this.node1FlowConfigClient.deleteFlowConfig(flowId);
 // Check if deletion is reflected on both nodes
 try {
  this.node1FlowConfigClient.getFlowConfig(flowId);
  Assert.fail("Get should have gotten a 404 error");
 } catch (RestLiResponseException e) {
  Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404);
 }
 try {
  this.node2FlowConfigClient.getFlowConfig(flowId);
  Assert.fail("Get should have gotten a 404 error");
 } catch (RestLiResponseException e) {
  Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404);
 }
 logger.info("+++++++++++++++++++ testDelete END");
}
origin: apache/incubator-gobblin

@Test (dependsOnMethods = "testUpdate")
public void testDelete() throws Exception {
 FlowId flowId = new FlowId().setFlowGroup(TEST_GROUP_NAME).setFlowName(TEST_FLOW_NAME);
 // make sure flow config exists
 FlowConfig flowConfig = _client.getFlowConfig(flowId);
 Assert.assertEquals(flowConfig.getId().getFlowGroup(), TEST_GROUP_NAME);
 Assert.assertEquals(flowConfig.getId().getFlowName(), TEST_FLOW_NAME);
 _client.deleteFlowConfig(flowId);
 try {
  _client.getFlowConfig(flowId);
 } catch (RestLiResponseException e) {
  Assert.assertEquals(e.getStatus(), HttpStatus.S_404_NOT_FOUND.getCode());
  return;
 }
 Assert.fail("Get should have gotten a 404 error");
}
org.apache.gobblin.serviceFlowConfigClientdeleteFlowConfig

Javadoc

Delete a flow configuration

Popular methods of FlowConfigClient

  • <init>
    Construct a FlowConfigClient to communicate with http flow config server at URI serverUri
  • createFlowConfig
    Create a flow configuration
  • getFlowConfig
    Get a flow configuration
  • updateFlowConfig
    Update a flow configuration
  • close

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now