public class MetadataRuntimeShell extends MetadataEnvironmentShell
MetadataEnvironmentShell
that provides access to runtime
metadata outside a sandbox.MetadataEnvironmentShell.ThreadResources, MetadataEnvironmentShell.Variable<T>, MetadataEnvironmentShell.Variables
CONTEXT_PARAMETER_MAP, ISOLATED, metadataRevisionId
Constructor and Description |
---|
MetadataRuntimeShell()
Constructs a new shell.
|
MetadataRuntimeShell(MetadataEnvironmentShell.Variables globalVariables,
java.lang.String metadataRevisionId)
Constructs a shell with global variables.
|
MetadataRuntimeShell(java.lang.String metadataRevisionId)
Constructs a shell based on a revision.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getMdsRepositoryId()
Returns the ID of the MDS repository if this shell is for an MDS
repository.
|
protected oracle.mds.naming.Namespace |
getMdsStoreLocator()
Returns the namespace to identify the store used by the MDS repository
if this shell is for an MDS repository.
|
protected MetadataEnvironmentThread |
newThread(MetadataEnvironmentShell.Variables variables,
java.lang.ThreadGroup group,
java.lang.Runnable target,
java.lang.String name,
long stackSize)
Creates a thread for task execution.
|
protected MetadataEnvironmentThread.Resources |
newThreadResources()
Returns resources acquired from the current thread.
|
call, call, current, execute, execute, execute, execute, getGlobalVariable, getMetadataRevisionId, getVariable, isGlobalVariableSet, isVariableSet
public MetadataRuntimeShell()
public MetadataRuntimeShell(java.lang.String metadataRevisionId)
metadataRevisionId
- the ID of the metadata revision;
null
if this shell is based on the tip of mainlinepublic MetadataRuntimeShell(MetadataEnvironmentShell.Variables globalVariables, java.lang.String metadataRevisionId)
globalVariables
- the global variables; null
if nonemetadataRevisionId
- the ID of the metadata revision;
null
if this shell is based on the tip of mainlineprotected final java.lang.String getMdsRepositoryId()
null
otherwiseprotected final oracle.mds.naming.Namespace getMdsStoreLocator()
null
otherwiseprotected final MetadataEnvironmentThread newThread(MetadataEnvironmentShell.Variables variables, java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name, long stackSize)
MetadataEnvironmentShell
newThread
in class MetadataEnvironmentShell
variables
- the variables to be set in this thread, or
null
if no variables need to be setgroup
- the thread grouptarget
- the object whose run
is calledname
- the name of the new threadstackSize
- the desired stack size for the new thread, or zero to
indicate that this parameter is to be ignoredprotected MetadataEnvironmentThread.Resources newThreadResources()
MetadataEnvironmentShell
ThreadResources
in order to propagate more information
from the current thread to the new thread.newThreadResources
in class MetadataEnvironmentShell