KIE Internal 6.2.0.CR2

org.kie.internal.runtime.manager
Interface InternalRuntimeManager

All Superinterfaces:
org.kie.api.runtime.manager.RuntimeManager

public interface InternalRuntimeManager
extends org.kie.api.runtime.manager.RuntimeManager

Extension to stable API of RuntimeManager that provides additional capabilities that eventually will get propagated to main interface.


Method Summary
 CacheManager getCacheManager()
          Retrieves instance of cache manager
 DeploymentDescriptor getDeploymentDescriptor()
          Returns current deployment descriptor for this instance of RuntimeManager, might be null if descriptors are not used
 RuntimeEnvironment getEnvironment()
          Returns the actual environment used by the RuntimeManager
 boolean isClosed()
          Indicates if the runtime manager is closed.
 void setCacheManager(CacheManager cacheManager)
          Sets CacheManager to be used for manager scoped cacheable items
 void setDeploymentDescriptor(DeploymentDescriptor descriptor)
          Sets deployment descriptor for this instance of RuntimeManager
 void setSecurityManager(SecurityManager securityManager)
          Sets Security Manager to be used by this instance of RuntimeManager
 void validate(org.kie.api.runtime.KieSession ksession, org.kie.api.runtime.manager.Context<?> context)
          Validates if given KieSession is eligible to be used with given context.
 
Methods inherited from interface org.kie.api.runtime.manager.RuntimeManager
close, disposeRuntimeEngine, getIdentifier, getRuntimeEngine
 

Method Detail

validate

void validate(org.kie.api.runtime.KieSession ksession,
              org.kie.api.runtime.manager.Context<?> context)
              throws IllegalStateException
Validates if given KieSession is eligible to be used with given context.

Parameters:
ksession - instance of KieSession
context - instance of Context
Throws:
IllegalStateException - in case validation fails

getEnvironment

RuntimeEnvironment getEnvironment()
Returns the actual environment used by the RuntimeManager

Returns:

isClosed

boolean isClosed()
Indicates if the runtime manager is closed.

Returns:
true if runtime manager is closed (close method was invoked on it) otherwise false

getDeploymentDescriptor

DeploymentDescriptor getDeploymentDescriptor()
Returns current deployment descriptor for this instance of RuntimeManager, might be null if descriptors are not used

Returns:

setDeploymentDescriptor

void setDeploymentDescriptor(DeploymentDescriptor descriptor)
Sets deployment descriptor for this instance of RuntimeManager

Parameters:
descriptor -

setSecurityManager

void setSecurityManager(SecurityManager securityManager)
Sets Security Manager to be used by this instance of RuntimeManager

Parameters:
securityManager -

setCacheManager

void setCacheManager(CacheManager cacheManager)
Sets CacheManager to be used for manager scoped cacheable items

Parameters:
cacheManager -

getCacheManager

CacheManager getCacheManager()
Retrieves instance of cache manager

Returns:

KIE Internal 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.