Package org.apache.storm.st.utils

# 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 Summary

  Constructors
  Constructor
  Description
  `StringDecorator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `decorate(String componentId, String decorate)`
  `static boolean`
  `isDecorated(String componentId, String str)`
  `static String[]`
  `split2(String decoratedString)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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)