Tabnine Logo
ConsoleJSONDumpStage
Code IndexAdd Tabnine to your IDE (free)

How to use
ConsoleJSONDumpStage
in
com.ociweb.pronghorn.stage.test

Best Java code snippets using com.ociweb.pronghorn.stage.test.ConsoleJSONDumpStage (Showing top 20 results out of 315)

origin: oci-pronghorn/Pronghorn

public static ConsoleJSONDumpStage newInstance(GraphManager graphManager, Pipe input, Appendable out) {
  return new ConsoleJSONDumpStage(graphManager, input, out);
}

origin: oci-pronghorn/Pronghorn

public static void newInstance(GraphManager gm, Pipe[] input) {
  int i = input.length;
  while (--i>=0) {
    newInstance(gm,input[i]);
  }
}

origin: oci-pronghorn/Pronghorn

  @Override
  public void shutdown() {
    super.shutdown();
    ConsoleJSONDumpStage.this.requestShutdown();
  }
};
origin: oci-pronghorn/Pronghorn

  @Override
  public void shutdown() {
    super.shutdown();
    target.close();
  }
};
origin: oci-pronghorn/Pronghorn

public static void newInstance(GraphManager gm, Pipe[] input, Appendable[] out) {
  int i = input.length;
  while (--i>=0) {
    newInstance(gm,input[i],out[i]);
  }
}

origin: oci-pronghorn/Pronghorn

public static ConsoleJSONDumpStage newInstance(GraphManager graphManager, Pipe input, Appendable out, boolean showBytesAsUTF) {
  return new ConsoleJSONDumpStage(graphManager, input, out, showBytesAsUTF);
}
origin: oci-pronghorn/Pronghorn

public static void monitorPipe(GraphManager gm, int pipeId, Appendable target) {
          
  ConsoleJSONDumpStage.newInstance(gm, PipeMonitor.addMonitor(getPipe(gm, pipeId)), target);
  
}

origin: oci-pronghorn/Pronghorn

public static ConsoleJSONDumpStage newInstance(GraphManager graphManager, Pipe input) {
  return new ConsoleJSONDumpStage(graphManager, input);
}

origin: oci-pronghorn/Pronghorn

public static <T extends MessageSchema<T>> Pipe<T> attach(boolean debug, GraphManager gm, Pipe<T> source, Appendable console) {
  if (debug) {
    Pipe<T> out1 = new Pipe<T>(source.config().grow2x());
    Pipe<T> out2 = new Pipe<T>(source.config().grow2x());
        
    ReplicatorStage.newInstance(gm, source, out1, out2);        
    ConsoleJSONDumpStage.newInstance(gm, out1, console);

    return out2; 
  } else {
    return source;
  }
}
origin: oci-pronghorn/Pronghorn

ConsoleJSONDumpStage<BlockStorageReceiveSchema> watchNo1 = new ConsoleJSONDumpStage<>(gm, output[0]);
ConsoleJSONDumpStage<BlockStorageReceiveSchema> watch    = new ConsoleJSONDumpStage<>(gm, output[1], results, true);
ConsoleJSONDumpStage<BlockStorageReceiveSchema> watchNo2 = new ConsoleJSONDumpStage<>(gm, output[2]);
origin: oci-pronghorn/Pronghorn

              WatchServiceStage.EVENT_CREATE|WatchServiceStage.EVENT_DELETE);
ConsoleJSONDumpStage.newInstance(gm, output, captured);
ConsoleJSONDumpStage.newInstance(gm, defaultOutput, defaultCaptured);
origin: oci-pronghorn/Pronghorn

ConsoleJSONDumpStage<RowSchema<M>> watch = new ConsoleJSONDumpStage<>(gm, rowsPipe, new PrintStream(capture));
origin: oci-pronghorn/Pronghorn

private ConsoleJSONDumpStage buildGraph2(String blockFilePath, File tempFile, StringBuilder results,
    GraphManager gm2) {
  Pipe<RawDataSchema> encryptedDataPipe2 = RawDataSchema.instance.newPipe(10, 1000);
  Pipe<RawDataSchema> resultDataPipe2 = RawDataSchema.instance.newPipe(10, 1000);
      
  Pipe<BlockStorageReceiveSchema> doFinalInput3 = BlockStorageReceiveSchema.instance.newPipe(10, 1000);
  Pipe<BlockStorageXmitSchema> doFinalOutput3 = BlockStorageXmitSchema.instance.newPipe(10, 1000);
  
  BlockStorageStage.newInstance(gm2, blockFilePath, doFinalOutput3, doFinalInput3);
      
  results.setLength(0);
  results.append("single large message: ");
  
  FileBlobReadStage read= new FileBlobReadStage(gm2, encryptedDataPipe2, tempFile.getAbsolutePath());
  RawDataCryptAESCBCPKCS5Stage decrypt2 = new  RawDataCryptAESCBCPKCS5Stage(gm2, pass, false,
                                       encryptedDataPipe2, resultDataPipe2,
                                       doFinalInput3, doFinalOutput3
                            );
  
  ConsoleJSONDumpStage lastStage2 = ConsoleJSONDumpStage.newInstance(gm2, resultDataPipe2, results, true);
  return lastStage2;
}
origin: oci-pronghorn/Pronghorn

while (--i>=0) {
  targets[i] = new ByteArrayOutputStream();
  watch[i] =new ConsoleJSONDumpStage<>(gm, intputAsColumns[i], new PrintStream(targets[i]));
origin: oci-pronghorn/Pronghorn

ConsoleJSONDumpStage.newInstance(gm, perLoadRelease, result0);		
StringBuilder result1 = new StringBuilder();
ConsoleJSONDumpStage.newInstance(gm, perLoadProducer, result1);
StringBuilder result2 = new StringBuilder();
ConsoleJSONDumpStage watch = ConsoleJSONDumpStage.newInstance(gm, perLoadConsumer, result2);
origin: oci-pronghorn/Pronghorn

StringBuilder responseData = new StringBuilder();
ConsoleJSONDumpStage watch = ConsoleJSONDumpStage.newInstance(gm, output[0],outputData);
ConsoleJSONDumpStage.newInstance(gm, response[0], responseData);
origin: oci-pronghorn/Pronghorn

PronghornStage watch = ConsoleJSONDumpStage.newInstance(gm, outgoingPipes[0], console);
origin: oci-pronghorn/Pronghorn

ConsoleJSONDumpStage watch = ConsoleJSONDumpStage.newInstance(gm, output, b, false);
origin: oci-pronghorn/Pronghorn

                                     doFinalOutput1);
ConsoleJSONDumpStage lastStage = ConsoleJSONDumpStage.newInstance(gm, resultDataPipe, results, true);
return lastStage;
origin: oci-pronghorn/Pronghorn

ConsoleJSONDumpStage watch = ConsoleJSONDumpStage.newInstance(gm, output, b, false);
com.ociweb.pronghorn.stage.testConsoleJSONDumpStage

Javadoc

For some Schema T encode this data in JSON and write it to the target appendable. Can be set to assume that bytes are UTF8. The default output is System.out

Most used methods

  • <init>
  • newInstance
  • requestShutdown
  • shutdown

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
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