org.mule.example.loanbroker
Class AbstractLoanBrokerApp

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

public abstract class AbstractLoanBrokerApp
extends java.lang.Object

Runs the LoanBroker example application.


Constructor Summary
AbstractLoanBrokerApp()
           
AbstractLoanBrokerApp(java.lang.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 java.lang.String readString()
           
 void request(CustomerQuoteRequest request, boolean sync)
           
 void requestDispatch(int number, java.lang.String endpoint)
           
 java.util.List<java.lang.Object> requestSend(int number, java.lang.String endpoint)
           
 java.util.List<java.lang.Object> requestSend(int number, java.lang.String endpoint, java.util.Map properties)
           
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 java.lang.Exception
Throws:
java.lang.Exception

AbstractLoanBrokerApp

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

init

protected void init()
             throws java.lang.Exception
Throws:
java.lang.Exception

getConfigBuilder

protected ConfigurationBuilder getConfigBuilder()
                                         throws MuleException
Throws:
MuleException

dispose

protected void dispose()
                throws java.lang.Exception
Throws:
java.lang.Exception

run

protected void run(boolean synchronous)
            throws java.lang.Exception
Throws:
java.lang.Exception

createRequest

public CustomerQuoteRequest createRequest()

getRequestFromUser

protected static CustomerQuoteRequest getRequestFromUser()
                                                  throws java.io.IOException
Throws:
java.io.IOException

request

public void request(CustomerQuoteRequest request,
                    boolean sync)
             throws java.lang.Exception
Throws:
java.lang.Exception

requestDispatch

public void requestDispatch(int number,
                            java.lang.String endpoint)
                     throws java.lang.Exception
Throws:
java.lang.Exception

requestSend

public java.util.List<java.lang.Object> requestSend(int number,
                                                    java.lang.String endpoint)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

requestSend

public java.util.List<java.lang.Object> requestSend(int number,
                                                    java.lang.String endpoint,
                                                    java.util.Map properties)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

sendRandomRequests

protected void sendRandomRequests(int number,
                                  boolean synchronous)
                           throws java.lang.Exception
Throws:
java.lang.Exception

readCharacter

protected static int readCharacter()
                            throws java.io.IOException
Throws:
java.io.IOException

readString

protected static java.lang.String readString()
                                      throws java.io.IOException
Throws:
java.io.IOException

readInt

protected static int readInt()
                      throws java.io.IOException
Throws:
java.io.IOException

getRandomAmount

protected static double getRandomAmount()

getRandomDuration

protected static int getRandomDuration()

getRandomSsn

protected static int getRandomSsn()


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.