Top Fields Constructors Methods
org.eclipse.persistence.internal.security

public Class PrivilegedGetThreadInfo

extends Object
implements PrivilegedExceptionAction<ThreadInfo[]>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedExceptionAction
Imports
java.lang.management.ManagementFactory, .ThreadInfo, .ThreadMXBean, java.security.PrivilegedExceptionAction

Field Summary

Modifier and TypeField and Description
private final long[]
private final int

Constructor Summary

AccessConstructor and Description
public
PrivilegedGetThreadInfo(long[] ids, int maxDepth)

public

Method Summary

Modifier and TypeMethod and Description
public ThreadInfo[]
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idsback to summary
private final long[] ids
maxDepthback to summary
private final int maxDepth

Constructor Detail

PrivilegedGetThreadInfoback to summary
public PrivilegedGetThreadInfo(long[] ids, int maxDepth)
PrivilegedGetThreadInfoback to summary
public PrivilegedGetThreadInfo(int maxDepth)

Method Detail

runback to summary
public ThreadInfo[] run() throws Exception

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:ThreadInfo[]

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override
Exceptions
Exception:
an exceptional condition has occurred. Each class that implements PrivilegedExceptionAction should document the exceptions that its run method can throw.