Searched refs:timer (Results 1 - 25 of 64) sorted by relevance

123

/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/cts/monitoring/impl/connections/
H A DConnectionMonitor.java33 private final RateTimer timer; field in class:ConnectionMonitor
45 * @param timer An instance of a Timer.
47 private ConnectionMonitor(final RateTimer timer) { argument
48 this(timer, new RateWindow(timer, WINDOW_SIZE, SAMPLE_RATE));
51 ConnectionMonitor(final RateTimer timer, final RateWindow rateWindow) { argument
52 this.timer = timer;
62 rateWindow.incrementForTimestamp(timer.now());
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/cts/monitoring/impl/connections/
H A DConnectionMonitor.java33 private final RateTimer timer; field in class:ConnectionMonitor
45 * @param timer An instance of a Timer.
47 private ConnectionMonitor(final RateTimer timer) { argument
48 this(timer, new RateWindow(timer, WINDOW_SIZE, SAMPLE_RATE));
51 ConnectionMonitor(final RateTimer timer, final RateWindow rateWindow) { argument
52 this.timer = timer;
62 rateWindow.incrementForTimestamp(timer.now());
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/cts/monitoring/impl/operations/
H A DOperationMonitor.java48 * @param timer An instance of a Timer.
50 private OperationMonitor(final RateTimer timer) { argument
51 this(timer, new RateWindow(timer, WINDOW_SIZE, SAMPLE_RATE));
59 * @param timer An instance of a Timer.
61 OperationMonitor(final RateTimer timer, final RateWindow rateWindow) { argument
62 this.timerGetter = timer;
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/entitlement/monitoring/
H A DEvaluationMonitoringStore.java40 * @param timer An instance of a Timer.
43 public EvaluationMonitoringStore(final RateTimer timer) { argument
44 this(timer, new RateWindow(timer, WINDOW_SIZE, SAMPLE_RATE));
52 * @param timer An instance of a Timer.
54 EvaluationMonitoringStore(final RateTimer timer, final RateWindow rateWindow) { argument
55 this.timerGetter = timer;
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/cts/monitoring/impl/operations/
H A DOperationMonitor.java48 * @param timer An instance of a Timer.
50 private OperationMonitor(final RateTimer timer) { argument
51 this(timer, new RateWindow(timer, WINDOW_SIZE, SAMPLE_RATE));
59 * @param timer An instance of a Timer.
61 OperationMonitor(final RateTimer timer, final RateWindow rateWindow) { argument
62 this.timerGetter = timer;
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/entitlement/monitoring/
H A DEvaluationMonitoringStore.java40 * @param timer An instance of a Timer.
43 public EvaluationMonitoringStore(final RateTimer timer) { argument
44 this(timer, new RateWindow(timer, WINDOW_SIZE, SAMPLE_RATE));
52 * @param timer An instance of a Timer.
54 EvaluationMonitoringStore(final RateTimer timer, final RateWindow rateWindow) { argument
55 this.timerGetter = timer;
/forgerock/authenticator-ios-v2/ForgeRock-Authenticator/
H A DFRAAccountsTableViewController.h41 @property (strong, nonatomic) NSTimer *timer; variable
H A DFRAAccountTableViewController.h66 @property (strong, nonatomic) NSTimer *timer; variable
H A DFRANotificationsTableViewController.m39 @property (strong, nonatomic) NSTimer *timer;
57 if (!self.timer) {
58 self.timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerCallback:) userInfo:nil repeats:YES];
63 [self.timer invalidate];
64 self.timer = nil;
213 - (void)timerCallback:(NSTimer*)timer {
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/cts/monitoring/impl/connections/
H A DConnectionsMonitorTest.java37 RateTimer timer = mock(RateTimer.class);
40 connectionMonitor = new ConnectionMonitor(timer, rateWindow);
134 RateTimer timer = new TestCurrentMillis();
135 RateWindow rateWindow = new RateWindow(timer, 10, 1000L);
137 final ConnectionMonitor monitor = new ConnectionMonitor(timer, rateWindow);
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/cts/monitoring/impl/connections/
H A DConnectionsMonitorTest.java37 RateTimer timer = mock(RateTimer.class);
40 connectionMonitor = new ConnectionMonitor(timer, rateWindow);
134 RateTimer timer = new TestCurrentMillis();
135 RateWindow rateWindow = new RateWindow(timer, 10, 1000L);
137 final ConnectionMonitor monitor = new ConnectionMonitor(timer, rateWindow);
/forgerock/openam-v13/openam-shared/src/main/java/org/forgerock/openam/shared/monitoring/
H A DRateWindow.java36 private final RateTimer timer; field in class:RateWindow
53 * @param timer An instance of a Timer.
57 public RateWindow(final RateTimer timer, final int size, final long sampleRate) { argument
58 this.timer = timer;
175 return getIndexForTimestamp(timer.now());
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/cts/monitoring/impl/operations/
H A DOperationMonitorTest.java37 RateTimer timer = mock(RateTimer.class);
40 operationMonitor = new OperationMonitor(timer, rateWindow);
136 RateTimer timer = new TestCurrentMillis();
137 RateWindow rateWindow = new RateWindow(timer, 10, 1000L);
139 final OperationMonitor monitor = new OperationMonitor(timer, rateWindow);
/forgerock/openam/openam-shared/src/main/java/org/forgerock/openam/shared/monitoring/
H A DRateWindow.java36 private final RateTimer timer; field in class:RateWindow
53 * @param timer An instance of a Timer.
57 public RateWindow(final RateTimer timer, final int size, final long sampleRate) { argument
58 this.timer = timer;
175 return getIndexForTimestamp(timer.now());
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/cts/monitoring/impl/operations/
H A DOperationMonitorTest.java37 RateTimer timer = mock(RateTimer.class);
40 operationMonitor = new OperationMonitor(timer, rateWindow);
136 RateTimer timer = new TestCurrentMillis();
137 RateWindow rateWindow = new RateWindow(timer, 10, 1000L);
139 final OperationMonitor monitor = new OperationMonitor(timer, rateWindow);
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/tasks/
H A DTasksTestCase.java92 TestTimer timer = new TestTimer.Builder()
96 return timer.repeatUntilSuccess(new Callable<Entry>()
129 TestTimer timer = new TestTimer.Builder()
133 return timer.repeatUntilSuccess(new Callable<Task>()
160 TestTimer timer = new TestTimer.Builder()
164 return timer.repeatUntilSuccess(new Callable<Task>()
/forgerock/openam-v13/openam-shared/src/test/java/org/forgerock/openam/monitoring/
H A DRateWindowTest.java33 private RateTimer timer; field in class:RateWindowTest
37 timer = mock(RateTimer.class);
41 return new RateWindow(timer, windowSize, sampleRate);
74 given(timer.now()).willReturn(timestamp1 + SAMPLE_RATE);
198 given(timer.now()).willReturn(timestamp1 + (SAMPLE_RATE * 2));
218 given(timer.now()).willReturn(timestamp2);
238 given(timer.now()).willReturn(timestamp2 + SAMPLE_RATE - 1);
318 given(timer.now()).willReturn(timestamp2 + SAMPLE_RATE - 1);
343 given(timer.now()).willReturn(timestamp3 + 1);
373 given(timer
[all...]
/forgerock/openam/openam-shared/src/test/java/org/forgerock/openam/monitoring/
H A DRateWindowTest.java33 private RateTimer timer; field in class:RateWindowTest
37 timer = mock(RateTimer.class);
41 return new RateWindow(timer, windowSize, sampleRate);
74 given(timer.now()).willReturn(timestamp1 + SAMPLE_RATE);
198 given(timer.now()).willReturn(timestamp1 + (SAMPLE_RATE * 2));
218 given(timer.now()).willReturn(timestamp2);
238 given(timer.now()).willReturn(timestamp2 + SAMPLE_RATE - 1);
318 given(timer.now()).willReturn(timestamp2 + SAMPLE_RATE - 1);
343 given(timer.now()).willReturn(timestamp3 + 1);
373 given(timer
[all...]
/forgerock/opendj2/src/server/org/opends/server/backends/jeb/
H A DExportJob.java133 // Start a timer for the progress report.
134 Timer timer = new Timer();
136 timer.scheduleAtFixedRate(progressTask, progressInterval,
162 timer.cancel();
297 * The action to be performed by this timer task.
/forgerock/opendj-b2.6/src/server/org/opends/server/backends/jeb/
H A DExportJob.java134 // Start a timer for the progress report.
135 Timer timer = new Timer();
137 timer.scheduleAtFixedRate(progressTask, progressInterval,
163 timer.cancel();
298 * The action to be performed by this timer task.
/forgerock/opendj2.6.2/src/server/org/opends/server/backends/jeb/
H A DExportJob.java134 // Start a timer for the progress report.
135 Timer timer = new Timer();
137 timer.scheduleAtFixedRate(progressTask, progressInterval,
163 timer.cancel();
298 * The action to be performed by this timer task.
/forgerock/opendj2-hg/src/server/org/opends/server/backends/jeb/
H A DExportJob.java133 // Start a timer for the progress report.
134 Timer timer = new Timer();
136 timer.scheduleAtFixedRate(progressTask, progressInterval,
162 timer.cancel();
297 * The action to be performed by this timer task.
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/jeb/
H A DExportJob.java134 // Start a timer for the progress report.
135 Timer timer = new Timer();
137 timer.scheduleAtFixedRate(progressTask, progressInterval,
163 timer.cancel();
298 * The action to be performed by this timer task.
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/
H A DExportJob.java116 // Start a timer for the progress report.
117 Timer timer = new Timer();
119 timer.scheduleAtFixedRate(progressTask, progressInterval, progressInterval);
156 timer.cancel();
269 /** The action to be performed by this timer task. */
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/protocols/jmx/
H A DJmxTestCase.java92 TestTimer timer = new TestTimer.Builder()
96 timer.repeatUntilSuccess(new Callable<Void>()

Completed in 101 milliseconds

123