public static interface Operator.RuntimeEnvironment
This is only valid during application runtime. It will not be valid during typecheck.
Modifier and Type | Method and Description |
---|---|
ExecutorService |
createExecutor(int maxNumberOfWorkerThreads)
Create an ExecutorService.
|
Constants.LeadershipStatus |
getLeadershipStatus()
Deprecated.
Legacy high-availability service, migrate to SB 10 high-availability service.
|
Operator.SharedObjectManager |
getSharedObjectManager()
Return the SharedObjectManager
|
StreamBaseURI |
getURI()
Return the URI of this Server.
|
void |
registerUnmanagedThread(String name)
Threads that do not derive from Operator may call this method
and their CPU usage will be tracked by the StreamBase profiler.
|
void |
unregisterUnmanagedThread()
Threads which have called registerUnmanagedThread() and that are no longer interested in
having the StreamBase profiler track them should call this method.
|
StreamBaseURI getURI()
@Deprecated Constants.LeadershipStatus getLeadershipStatus()
This method is no longer supported since the StreamBase 10 platform release. Please consult the documentation.
Operator.SharedObjectManager getSharedObjectManager()
Operator.SharedObjectManager
ExecutorService createExecutor(int maxNumberOfWorkerThreads)
maxNumberOfWorkerThreads
- the maximum number of worker threads, use 0 or -1
for unlimited number of worker threads, otherwise the number of worker threads is
capped to the maxNumberOfWorkerThreads given.ExecutorService
void registerUnmanagedThread(String name)
public void run() { registerUnmanagedThread("QuotesProcessingThread") try { while (keepGoing) { // work. } } catch (Throwable t) { // handle problem. } finally { // make certain to unregister unregisterUnmanagedThread(); } }
name
- - This name will be appended to the operator path name and be used
as the thread name.void unregisterUnmanagedThread()
Copyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.