Developing Apama Applications > Developing Apama Applications in EPL > Implementing Parallel Processing > Calling context methods
Calling context methods
After you create a context, you can call the following methods on that context:
Calling context methods
Method
Returns
Description
object.getId()
integer
Instance method that returns the ID of the context.
object.getName()
string
Instance method that returns the name of the context.
object.isPublic()
boolean
Instance method that returns true if the context is public.
object.toString()
string
Instance method that returns a string that contains the properties of the context. For example, for a public context whose name is test, the content of the returned string would be something like this:
context(1, “test”, true)
context.current()
context
Static method that returns a reference to the current context. The current context is the context that contains the monitor instance or event instance that is calling this method.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.