Package org.apache.flink.runtime.rpc
Class RpcServiceUtils
- java.lang.Object
-
- org.apache.flink.runtime.rpc.RpcServiceUtils
-
public class RpcServiceUtils extends Object
These RPC utilities contain helper methods around RPC use.
-
-
Constructor Summary
Constructors Constructor Description RpcServiceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createRandomName(String prefix)
Creates a random name of the form prefix_X, where X is an increasing number.static String
createWildcardName(String prefix)
Creates a wildcard name symmetric tocreateRandomName(String)
.
-
-
-
Method Detail
-
createRandomName
public static String createRandomName(String prefix)
Creates a random name of the form prefix_X, where X is an increasing number.- Parameters:
prefix
- Prefix string to prepend to the monotonically increasing name offset number- Returns:
- A random name of the form prefix_X where X is an increasing number
-
createWildcardName
public static String createWildcardName(String prefix)
Creates a wildcard name symmetric tocreateRandomName(String)
.- Parameters:
prefix
- prefix of the wildcard name- Returns:
- wildcard name starting with the prefix
-
-