Class StringDecorator

java.lang.Object
org.apache.storm.st.utils.StringDecorator

public class StringDecorator extends Object
This class provides a method to pass data from the test bolts and spouts to the test method, via the worker log. Test components can use decorate(java.lang.String, java.lang.String) to create a string containing a unique prefix. Such prefixed log lines can be retrieved from the worker logs, and recognized via isDecorated(java.lang.String, java.lang.String).
  • Constructor Details

    • StringDecorator

      public StringDecorator()
  • Method Details

    • decorate

      public static String decorate(String componentId, String decorate)
    • isDecorated

      public static boolean isDecorated(String componentId, String str)
    • split2

      public static String[] split2(String decoratedString)