@Override public void open(Configuration parameters) throws Exception { super.open(parameters); this.random = new Random(); this.isRunning = true; }
@Override public void close() throws Exception { super.close(); if (checkpointLock != null) { synchronized (checkpointLock) { globalModificationTime = Long.MAX_VALUE; isRunning = false; } } if (LOG.isDebugEnabled()) { LOG.debug("Closed File Monitoring Source for path: " + path + "."); } }
@Override public void setRuntimeContext(RuntimeContext t) { ACTUAL_ORDER_TRACKING.add("UDF::setRuntimeContext"); super.setRuntimeContext(t); }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); running = true; }
@Override public void close() throws Exception { ACTUAL_ORDER_TRACKING.add("UDF::close"); super.close(); } }
@Override public void open(Configuration parameters) throws Exception { ACTUAL_ORDER_TRACKING.add("UDF::open"); super.open(parameters); }
@Override public void close() throws Exception { super.close(); if (!openCalled) { Assert.fail("Open was not called before close."); } closeCalled = true; }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); format.configure(parameters); if (LOG.isDebugEnabled()) { LOG.debug("Opened {} (taskIdx= {}) for path: {}", getClass().getSimpleName(), getRuntimeContext().getIndexOfThisSubtask(), path); } }
@Override public void close() throws Exception { super.close(); synchronized (checkpointLock) { globalModificationTime = Long.MAX_VALUE; isRunning = false; } if (LOG.isDebugEnabled()) { LOG.debug("Closed File Monitoring Source for path: " + path + "."); } }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); if (closeCalled) { Assert.fail("Close called before open."); } openCalled = true; }
@Override public void close() throws Exception { super.close(); if (checkpointLock != null) { synchronized (checkpointLock) { globalModificationTime = Long.MAX_VALUE; isRunning = false; } } if (LOG.isDebugEnabled()) { LOG.debug("Closed File Monitoring Source for path: " + path + "."); } }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); getRuntimeContext().addAccumulator(SUCCESSFUL_RESTORE_CHECK_ACCUMULATOR, new IntCounter()); }
@Override public void close() throws Exception { super.close(); if (checkpointLock != null) { synchronized (checkpointLock) { globalModificationTime = Long.MAX_VALUE; isRunning = false; } } if (LOG.isDebugEnabled()) { LOG.debug("Closed File Monitoring Source for path: " + path + "."); } }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); long now = System.currentTimeMillis(); if(currentTimeMs == 0) { currentTimeMs = now - (now % 1000); // floor to second boundary } }
@Override public synchronized void close() throws Exception { super.close(); if (null != client) { client.close(); } }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); format.configure(parameters); if (LOG.isDebugEnabled()) { LOG.debug("Opened {} (taskIdx= {}) for path: {}", getClass().getSimpleName(), getRuntimeContext().getIndexOfThisSubtask(), path); } }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); format.configure(parameters); if (LOG.isDebugEnabled()) { LOG.debug("Opened {} (taskIdx= {}) for path: {}", getClass().getSimpleName(), getRuntimeContext().getIndexOfThisSubtask(), path); } }
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); format.configure(parameters); if (LOG.isDebugEnabled()) { LOG.debug("Opened {} (taskIdx= {}) for path: {}", getClass().getSimpleName(), getRuntimeContext().getIndexOfThisSubtask(), path); } }
@Override public void open(Configuration parameters) throws Exception { LOG.info("Opening summarization job."); super.open(parameters); client = new WebSocketSubscriptionClient(jp.getTimelyHostname(), jp.getTimelyHttpsPort(), jp.getTimelyWssPort(), jp.isDoLogin(), jp.getTimelyUsername(), jp.getTimelyPassword(), jp.getKeyStoreFile(), jp.getKeyStoreType(), jp.getKeyStorePass(), jp.getTrustStoreFile(), jp.getTrustStoreType(), jp.getTrustStorePass(), jp.isHostVerificationEnabled(), jp.getBufferSize()); }