org.mule.example.loanbroker
Class AbstractLoanBrokerApp

java.lang.Object
  extended by org.mule.example.loanbroker.AbstractLoanBrokerApp
Direct Known Subclasses:
LoanBrokerApp, LoanBrokerApp

public abstract class AbstractLoanBrokerApp
extends Object

Runs the LoanBroker example application.


Constructor Summary
AbstractLoanBrokerApp()
           
AbstractLoanBrokerApp(String config)
           
 
Method Summary
 CustomerQuoteRequest createRequest()
           
protected  void dispose()
           
protected  ConfigurationBuilder getConfigBuilder()
           
protected static double getRandomAmount()
           
protected static int getRandomDuration()
           
protected static int getRandomSsn()
           
protected static CustomerQuoteRequest getRequestFromUser()
           
protected  void init()
           
protected static int readCharacter()
           
protected static int readInt()
           
protected static String readString()
           
 void request(CustomerQuoteRequest request, boolean sync)
           
 void requestDispatch(int number, String endpoint)
           
 List<Object> requestSend(int number, String endpoint)
           
protected  void run(boolean synchronous)
           
protected  void sendRandomRequests(int number, boolean synchronous)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLoanBrokerApp

public AbstractLoanBrokerApp()
                      throws Exception
Throws:
Exception

AbstractLoanBrokerApp

public AbstractLoanBrokerApp(String config)
                      throws Exception
Throws:
Exception
Method Detail

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.