Class ResourceID
- java.lang.Object
-
- org.apache.flink.runtime.clusterframework.types.ResourceID
-
- All Implemented Interfaces:
Serializable
,ResourceIDRetrievable
public final class ResourceID extends Object implements ResourceIDRetrievable, Serializable
Class for Resource Ids identifying Flink's distributed components.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceID(String resourceId)
ResourceID(String resourceId, String metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ResourceID
generate()
Generate a random resource id.String
getMetadata()
ResourceID
getResourceID()
A ResourceID can always retrieve a ResourceID.String
getResourceIdString()
Gets the Resource Id as string.String
getStringWithMetadata()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getResourceIdString
public final String getResourceIdString()
Gets the Resource Id as string.- Returns:
- Stringified version of the ResourceID
-
getStringWithMetadata
public final String getStringWithMetadata()
-
getResourceID
public ResourceID getResourceID()
A ResourceID can always retrieve a ResourceID.- Specified by:
getResourceID
in interfaceResourceIDRetrievable
- Returns:
- This instance.
-
getMetadata
public String getMetadata()
-
generate
public static ResourceID generate()
Generate a random resource id.- Returns:
- A random resource id.
-
-