org.mule.example.loanbroker
Class AbstractLoanBrokerApp
java.lang.Object
org.mule.example.loanbroker.AbstractLoanBrokerApp
- Direct Known Subclasses:
- LoanBrokerApp, LoanBrokerApp
public abstract class AbstractLoanBrokerApp
- extends Object
Runs the LoanBroker example application.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLoanBrokerApp
public AbstractLoanBrokerApp()
throws Exception
- Throws:
Exception
AbstractLoanBrokerApp
public AbstractLoanBrokerApp(String config)
throws Exception
- Throws:
Exception
init
protected void init()
throws Exception
- Throws:
Exception
getConfigBuilder
protected ConfigurationBuilder getConfigBuilder()
throws MuleException
- Throws:
MuleException
dispose
protected void dispose()
throws Exception
- Throws:
Exception
run
protected void run(boolean synchronous)
throws Exception
- Throws:
Exception
createRequest
public CustomerQuoteRequest createRequest()
getRequestFromUser
protected static CustomerQuoteRequest getRequestFromUser()
throws IOException
- Throws:
IOException
request
public void request(CustomerQuoteRequest request,
boolean sync)
throws Exception
- Throws:
Exception
requestDispatch
public void requestDispatch(int number,
String endpoint)
throws Exception
- Throws:
Exception
requestSend
public List<Object> requestSend(int number,
String endpoint)
throws Exception
- Throws:
Exception
sendRandomRequests
protected void sendRandomRequests(int number,
boolean synchronous)
throws Exception
- Throws:
Exception
readCharacter
protected static int readCharacter()
throws IOException
- Throws:
IOException
readString
protected static String readString()
throws IOException
- Throws:
IOException
readInt
protected static int readInt()
throws IOException
- Throws:
IOException
getRandomAmount
protected static double getRandomAmount()
getRandomDuration
protected static int getRandomDuration()
getRandomSsn
protected static int getRandomSsn()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.