Class ApplicationScope
java.lang.Object
com.inductiveautomation.ignition.common.model.ApplicationScope
Various parts of the system allow operations to be filtered based on "scope". This class defines various values and
masks that can be used as those parameters.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the scope of this jvm, wherever it may be.static StringReturns the current jvm's scope prefix, for use in thread names.static voidinit(int globalScope) static booleanisClient(int scope) static booleanisDesigner(int scope) static booleanisGateway(int scope) static intparseScope(String s) Returns a bitmask representing application scope for strings like:static StringtoCode(int scope) Turns a scope int into the various scope codes: "C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all.static StringtoString(int scope) static String
-
Field Details
-
NONE
public static final int NONE- See Also:
-
GATEWAY
public static final int GATEWAY- See Also:
-
DESIGNER
public static final int DESIGNER- See Also:
-
CLIENT
public static final int CLIENT- See Also:
-
ALL
public static final int ALL- See Also:
-
-
Method Details
-
parseScope
Returns a bitmask representing application scope for strings like:"C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all
-
init
public static void init(int globalScope) -
getGlobalScope
public static int getGlobalScope()Returns the scope of this jvm, wherever it may be. Some code (such as code in common) doesn't know where it will end up running, and this is one way to tell where you are. -
getScopePrefix
Returns the current jvm's scope prefix, for use in thread names. "gateway", "designer" or "client" -
isGateway
public static boolean isGateway(int scope) -
isClient
public static boolean isClient(int scope) -
isDesigner
public static boolean isDesigner(int scope) -
toString
-
toString
-
toCode
Turns a scope int into the various scope codes: "C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all. Scope codes can be combined (such as "CD"), but "A" is always returned instead of "CDG"
-