org.apache.flink.metrics.View Java Examples
The following examples show how to use
org.apache.flink.metrics.View.
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: ViewUpdater.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void run() { for (View toUpdate : this.views) { toUpdate.update(); } synchronized (lock) { views.addAll(toAdd); toAdd.clear(); views.removeAll(toRemove); toRemove.clear(); } }
Example #2
Source File: ViewUpdater.java From flink with Apache License 2.0 | 5 votes |
@Override public void run() { for (View toUpdate : this.views) { toUpdate.update(); } synchronized (lock) { views.addAll(toAdd); toAdd.clear(); views.removeAll(toRemove); toRemove.clear(); } }
Example #3
Source File: ViewUpdater.java From flink with Apache License 2.0 | 5 votes |
@Override public void run() { for (View toUpdate : this.views) { toUpdate.update(); } synchronized (lock) { views.addAll(toAdd); toAdd.clear(); views.removeAll(toRemove); toRemove.clear(); } }
Example #4
Source File: ViewUpdater.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
/** * Notifies this ViewUpdater of a new metric that should be regularly updated. * * @param view metric that should be regularly updated */ public void notifyOfAddedView(View view) { synchronized (lock) { toAdd.add(view); } }
Example #5
Source File: ViewUpdater.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
/** * Notifies this ViewUpdater of a metric that should no longer be regularly updated. * * @param view metric that should no longer be regularly updated */ public void notifyOfRemovedView(View view) { synchronized (lock) { toRemove.add(view); } }
Example #6
Source File: ViewUpdater.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
private ViewUpdaterTask(Object lock, Set<View> toAdd, Set<View> toRemove) { this.lock = lock; this.views = new HashSet<>(); this.toAdd = toAdd; this.toRemove = toRemove; }
Example #7
Source File: ViewUpdater.java From flink with Apache License 2.0 | 4 votes |
/** * Notifies this ViewUpdater of a new metric that should be regularly updated. * * @param view metric that should be regularly updated */ public void notifyOfAddedView(View view) { synchronized (lock) { toAdd.add(view); } }
Example #8
Source File: ViewUpdater.java From flink with Apache License 2.0 | 4 votes |
/** * Notifies this ViewUpdater of a metric that should no longer be regularly updated. * * @param view metric that should no longer be regularly updated */ public void notifyOfRemovedView(View view) { synchronized (lock) { toRemove.add(view); } }
Example #9
Source File: ViewUpdater.java From flink with Apache License 2.0 | 4 votes |
private ViewUpdaterTask(Object lock, Set<View> toAdd, Set<View> toRemove) { this.lock = lock; this.views = new HashSet<>(); this.toAdd = toAdd; this.toRemove = toRemove; }
Example #10
Source File: ViewUpdater.java From flink with Apache License 2.0 | 4 votes |
/** * Notifies this ViewUpdater of a new metric that should be regularly updated. * * @param view metric that should be regularly updated */ public void notifyOfAddedView(View view) { synchronized (lock) { toAdd.add(view); } }
Example #11
Source File: ViewUpdater.java From flink with Apache License 2.0 | 4 votes |
/** * Notifies this ViewUpdater of a metric that should no longer be regularly updated. * * @param view metric that should no longer be regularly updated */ public void notifyOfRemovedView(View view) { synchronized (lock) { toRemove.add(view); } }
Example #12
Source File: ViewUpdater.java From flink with Apache License 2.0 | 4 votes |
private ViewUpdaterTask(Object lock, Set<View> toAdd, Set<View> toRemove) { this.lock = lock; this.views = new HashSet<>(); this.toAdd = toAdd; this.toRemove = toRemove; }