org.apache.flink.runtime.state.CheckpointListener Java Examples

The following examples show how to use org.apache.flink.runtime.state.CheckpointListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractUdfStreamOperator.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
	super.notifyCheckpointComplete(checkpointId);

	if (userFunction instanceof CheckpointListener) {
		((CheckpointListener) userFunction).notifyCheckpointComplete(checkpointId);
	}
}
 
Example #2
Source File: AbstractUdfStreamOperator.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
	super.notifyCheckpointComplete(checkpointId);

	if (userFunction instanceof CheckpointListener) {
		((CheckpointListener) userFunction).notifyCheckpointComplete(checkpointId);
	}
}
 
Example #3
Source File: HdfsSink2.java    From sylph with Apache License 2.0 5 votes vote down vote up
@Override
public void notifyCheckpointComplete(long checkpointId)
        throws Exception
{
    for (RichSinkFunction<T> sink : sinks) {
        if (sink instanceof CheckpointListener) {
            ((CheckpointListener) sink).notifyCheckpointComplete(checkpointId);
        }
    }
}
 
Example #4
Source File: AbstractUdfStreamOperator.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
	super.notifyCheckpointComplete(checkpointId);

	if (userFunction instanceof CheckpointListener) {
		((CheckpointListener) userFunction).notifyCheckpointComplete(checkpointId);
	}
}
 
Example #5
Source File: AbstractUdfStreamOperator.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void notifyCheckpointAborted(long checkpointId) throws Exception {
	super.notifyCheckpointAborted(checkpointId);

	if (userFunction instanceof CheckpointListener) {
		((CheckpointListener) userFunction).notifyCheckpointAborted(checkpointId);
	}
}