public abstract class IngressPlugin
extends java.lang.Object
| Constructor and Description |
|---|
IngressPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(java.lang.Object ingress,
WriteToken token,
Metadata metadata)
Called for each GTS identified as a deletion candidate
|
void |
flush(java.lang.Object ingress)
Called when the processing of an update, meta or delete operation ends
|
void |
init() |
boolean |
meta(java.lang.Object ingress,
WriteToken token,
java.lang.String line,
Metadata metadata)
Called when a line of the input to the /meta endpoint has been parsed
|
boolean |
update(java.lang.Object ingress,
WriteToken token,
java.lang.String line,
GTSEncoder encoder)
Called when a line of GTS Input Format has been parsed.
|
public void init()
public boolean update(java.lang.Object ingress,
WriteToken token,
java.lang.String line,
GTSEncoder encoder)
ingress - Instance which parsed the line (either Ingress or StandaloneIngressHandler)token - Write token used to push the dataline - Text line in GTS Input Formatencoder - Parsed encoderpublic boolean meta(java.lang.Object ingress,
WriteToken token,
java.lang.String line,
Metadata metadata)
ingress - Instance which parsed the line (either Ingress or StandaloneIngressHandler)token - Write token used to perform the metadata modificationline - Line which was parsedmetadata - Parsed Metadatapublic boolean delete(java.lang.Object ingress,
WriteToken token,
Metadata metadata)
ingress - Instance which processes the delete (either Ingress or StandaloneDeleteHandler)token - Write token used for the deletemetadata - Metadata of the GTS to deletepublic void flush(java.lang.Object ingress)
ingress - Instance