-
- All Superinterfaces:
Named,TokenTyped
- All Known Subinterfaces:
PhysicalInputPort,PhysicalOutputPort,RecordInput,RecordOutput
public interface PhysicalPort extends Named, TokenTyped
The common interface for all ports, both input and output. Ports represent an access point to a flow for an operator.Ports are strongly typed, based upon the underlying tokens of the associated flow. Many common
token typesare supported, including Java primitive types and composite types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddetach()Forcibly releases the resources of a port.PortStatisticsgetStats()Retrieves the run-time statistics gathered for this port.TokenTypegetType()Gets the type of tokens in the underlying flow.booleanisAttached()Indicates whether the port is still attached.
-
-
-
Method Detail
-
getType
TokenType getType()
Gets the type of tokens in the underlying flow.- Specified by:
getTypein interfaceTokenTyped- Returns:
- the token type for this port.
-
getStats
PortStatistics getStats()
Retrieves the run-time statistics gathered for this port.- Returns:
PortStatsgathered during execution ornullif the configuration did not specify collecting statistics
-
isAttached
boolean isAttached()
Indicates whether the port is still attached.- Returns:
trueif the port may still have data flowing,falseotherwise
-
detach
void detach()
Forcibly releases the resources of a port.
-
-