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 and Description
    `StringDecorator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### StringDecorator

          public StringDecorator()

  - ### Method Detail

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

Copyright © 2021 The Apache Software Foundation. All rights reserved.