|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.SystemResourcePool
public class SystemResourcePool
A pool to handle the system resource kinds. These resource kinds are special. They are not stored in the users program block. They do not need a valid accpac id to run.
Constructor Summary | |
---|---|
SystemResourcePool(ApplicationContext context,
java.lang.String authToken)
Constructor. |
Method Summary | |
---|---|
void |
checkIn(ResourceKind resourceKind,
SDataRequest request,
ResourceResponse response,
java.lang.RuntimeException exception)
Checks the ResourceKind back into the pool. |
ResourceKind |
checkOut(SDataRequest request,
java.lang.String authToken)
Checks a ResourceKind out of the pool. |
java.util.Collection<SDataResourceKindInfo> |
getResourceKindInfo()
Gets the ResourceKindInfo for all the resources in the pool, or null. |
void |
shutdown()
Perform any cleanup of the pool during shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemResourcePool(ApplicationContext context, java.lang.String authToken)
context
- authToken
- Method Detail |
---|
public void checkIn(ResourceKind resourceKind, SDataRequest request, ResourceResponse response, java.lang.RuntimeException exception)
ResourceKindPool
checkIn
in interface ResourceKindPool
resourceKind
- the ResourceKind originally checked out by ResourceKindPool.checkOut(com.sage.orion.sdata.servlet.SDataRequest, java.lang.String)
request
- the original SDataRequest
for which the
ResourceKindPool.checkOut(com.sage.orion.sdata.servlet.SDataRequest, java.lang.String)
occurredresponse
- the ResourceResponse
that is about to be returned, or
null if there is a throwableexception
- the RuntimeException
about to be converted to a
response, or null if there is a response.public ResourceKind checkOut(SDataRequest request, java.lang.String authToken)
ResourceKindPool
checkOut
in interface ResourceKindPool
request
- the SDataRequest
for which a ResourceKind
is wantedauthToken
- the authorization token representing the user
ResourceKind
or nullpublic java.util.Collection<SDataResourceKindInfo> getResourceKindInfo()
ResourceKindPool
getResourceKindInfo
in interface ResourceKindPool
public void shutdown()
ResourceKindPool
shutdown
in interface ResourceKindPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |