- java.lang.Object
-
- com.ibm.oti.shared.Shared
-
public class Shared extends Object
Global class that provides SharedClassHelperFactory, SharedDataHelperFactory and sharing status.- See Also:
SharedClassHelperFactory
,SharedDataHelperFactory
-
-
Constructor Summary
Constructors Constructor Description Shared()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SharedClassHelperFactory
getSharedClassHelperFactory()
If sharing is enabled, returns a SharedClassHelperFactory, otherwise returns null.static SharedDataHelperFactory
getSharedDataHelperFactory()
If sharing is enabled, returns a SharedDataHelperFactory, otherwise returns null.static boolean
isSharingEnabled()
Checks if sharing is enabled for this JVM.
-
-
-
Constructor Detail
-
Shared
@Deprecated public Shared()
Deprecated.Constructs a new instance of this class.
-
-
Method Detail
-
isSharingEnabled
public static boolean isSharingEnabled()
Checks if sharing is enabled for this JVM.- Returns:
- true if using -Xshareclasses on the command-line, false otherwise
-
getSharedClassHelperFactory
public static SharedClassHelperFactory getSharedClassHelperFactory()
If sharing is enabled, returns a SharedClassHelperFactory, otherwise returns null.- Returns:
- SharedClassHelperFactory
-
getSharedDataHelperFactory
public static SharedDataHelperFactory getSharedDataHelperFactory()
If sharing is enabled, returns a SharedDataHelperFactory, otherwise returns null.- Returns:
- SharedDataHelperFactory
-
-