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 © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.