public class BBjWSImpl
extends java.lang.Object
Constructor and Description |
---|
BBjWSImpl() |
BBjWSImpl(java.lang.String p_commandLineParams) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
the destroy method required in order to implement ServiceLifecycle.
|
int |
getMaxPoolSize()
retrieve current setting for max number of JavaBBjBridges in pool.
|
ServletEndpointContext |
getServletEndpointContext()
retrieve the servelt endpoint context
|
void |
init(java.lang.Object context)
the init method is required in order to implement ServiceLifecycle.
|
byte[] |
invokeBBjReturnBytes(java.lang.String p_programName,
java.lang.String p_programParams,
java.util.HashMap p_keyValuesAsStrings,
int p_timeoutInSeconds)
invoke bbj and return a byte[] containing any strings that the bbj
program
wrote to its J-channel using WRITE
|
java.util.HashMap |
invokeBBjReturnMap(java.lang.String p_programName,
java.lang.String p_programParams,
java.util.HashMap p_keyValuesAsStrings,
int p_timeoutInSeconds)
invoke bbj and return the key-value pairs that the called program
wrote to its J-channel using writeRecord with a key
|
void |
setMaxPoolSize(int p_poolSize)
set max number of JavaBBjBridges in pool
|
public BBjWSImpl()
public BBjWSImpl(java.lang.String p_commandLineParams)
p_commandLineParams
- the command line that is to be passed to the
bridge when it is created
Recognized command line options are
"[-cpublic byte[] invokeBBjReturnBytes(java.lang.String p_programName, java.lang.String p_programParams, java.util.HashMap p_keyValuesAsStrings, int p_timeoutInSeconds) throws java.rmi.RemoteException
p_programName
- the bbj program that is to be executedp_programParams
- string containing parameters to be passed to
program. p_programParams may be nullp_keyValuesAsStrings
- a set of key-value pairs that will be made
available to the program when it does a readRecord with key.
p_keyValuesAsStrings may be null. Each key and each value is
expected
to be a String.p_timeoutInSeconds
- number of seconds this call should block
waiting for execution of program to be completejava.rmi.RemoteException
public java.util.HashMap invokeBBjReturnMap(java.lang.String p_programName, java.lang.String p_programParams, java.util.HashMap p_keyValuesAsStrings, int p_timeoutInSeconds) throws java.rmi.RemoteException
p_programName
- the bbj program that is to be executedp_programParams
- string containing parameters to be passed to
program. p_programParams may be nullp_keyValuesAsStrings
- a set of key-value pairs that will be made
available to the program when it does a readRecord with key.
p_keyValuesAsStrings may be null. Each key and each value is
expected
to be a String.p_timeoutInSeconds
- number of seconds this call should block
waiting for execution of program to be completejava.rmi.RemoteException
public void destroy()
public void init(java.lang.Object context) throws javax.xml.rpc.ServiceException
javax.xml.rpc.ServiceException
public ServletEndpointContext getServletEndpointContext()
public int getMaxPoolSize()
public void setMaxPoolSize(int p_poolSize)
p_poolSize
- max number of JavaBBjBridges in pool
If there are already more than p_poolSize JavaBBjBridges
already in use
then none of those JavaBBjBridges are destroyed although they
may time
out and be removed from the pool. No new JavaBBjBridges will
be created
until the current number of JavaBBjBridges falls below
maxPoolSize