|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kalio.empweb.engine.WSBroker
public class WSBroker
Title: WSBroker
Description: This class has two purposes: It is the configuration initializer for the engine, providing the implementation for the EngineInit web service. It also resolves TransactionPipelines and Web Services identified by a logic name.
Copyright: Copyright (c) 2004
Company: Kalio
Field Summary | |
---|---|
static java.lang.String[] |
ENGINE_STATE_MESSAGE
|
static int |
ENGINE_STATE_READY
|
static int |
ENGINE_STATE_TRANS_OFF
|
Constructor Summary | |
---|---|
WSBroker()
|
Method Summary | |
---|---|
static int |
checkEngineState()
|
static java.util.Map |
getAllLimits()
It returns a union of all the limits used in all the current pipelines. |
static java.lang.String |
getDatabaseType(java.lang.String db)
Returns the type of the database represented by the logic name "db". |
static DBConfig |
getDBConfig(java.lang.String db)
|
static java.lang.String[] |
getDBLogicNames(java.lang.String type)
Returns an array of String with the logic names of all the databases of the given type |
static EmpwebDB |
getEwdb()
|
static org.w3c.dom.Element |
getMockupResponse(java.lang.String wsName)
|
static TransactionPipeline |
getTransactionPipeline(java.lang.String type)
|
static java.util.Map |
getTransactionPipelines()
Returns a clone copy of the Transaction Pipelines map. |
void |
init()
|
static java.lang.Object |
invokeService(java.lang.String logicName,
java.lang.String method,
java.lang.Object[] params)
Convenience method to invoke a "method" of the web service that is represented by this "logicName" |
static void |
main(java.lang.String[] a)
|
static void |
setEngineState(int state)
|
static void |
setEngineState(java.lang.String state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ENGINE_STATE_READY
public static final int ENGINE_STATE_TRANS_OFF
public static final java.lang.String[] ENGINE_STATE_MESSAGE
Constructor Detail |
---|
public WSBroker()
Method Detail |
---|
public void init() throws XMLConfigurationException, ConfigurationException
XMLConfigurationException
ConfigurationException
public static TransactionPipeline getTransactionPipeline(java.lang.String type)
public static java.util.Map getTransactionPipelines()
public static java.util.Map getAllLimits()
public static java.lang.Object invokeService(java.lang.String logicName, java.lang.String method, java.lang.Object[] params) throws EngineException
logicName
- Logic name of a certain database accessed by a web servicemethod
- Name of the method or operation on the web serviceparams
- Array of objects for the parameters of the method
EngineException
public static java.lang.String[] getDBLogicNames(java.lang.String type)
public static DBConfig getDBConfig(java.lang.String db)
public static java.lang.String getDatabaseType(java.lang.String db)
public static EmpwebDB getEwdb()
public static int checkEngineState() throws EngineException
EngineException
public static void setEngineState(int state)
public static void setEngineState(java.lang.String state) throws EngineException
EngineException
public static org.w3c.dom.Element getMockupResponse(java.lang.String wsName) throws EngineException
EngineException
public static void main(java.lang.String[] a) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |