Websphere MQ Everyplace

examples.midp.exampleapp.msgpump
Class NormalServer

java.lang.Object
  |
  +--examples.midp.exampleapp.msgpump.NormalClient
        |
        +--examples.midp.exampleapp.msgpump.NormalServer
All Implemented Interfaces:
MsgPumpController

public class NormalServer
extends NormalClient

The server controller is required to do very little. Most of the work comes from responding to user input. This is done in processInput().


Field Summary
static java.lang.String prompttext
          String used to prompt the user for input.
static short[] version
           
 
Fields inherited from class examples.midp.exampleapp.msgpump.NormalClient
starttext
 
Constructor Summary
NormalServer()
           
 
Method Summary
protected  InputThread getNewInputThread()
          Returns a new inputthread.
 MsgPumpModel getNewModel()
          returns a pump server model.
 java.lang.String getQMname()
          Returns the default queue manager name.
static void main(java.lang.String[] args)
          The function called when the class is run.
 void processInput(java.lang.String input)
          Deals with user input.
 
Methods inherited from class examples.midp.exampleapp.msgpump.NormalClient
deleteDir, deleteQueueManager, displayMsg, getModel, getMsgPump, initialize, processMsg, setPumpProperties, start, startInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version

prompttext

public static final java.lang.String prompttext
String used to prompt the user for input.

See Also:
Constant Field Values
Constructor Detail

NormalServer

public NormalServer()
Method Detail

main

public static void main(java.lang.String[] args)
The function called when the class is run. This creates and starts a new controller.


getQMname

public java.lang.String getQMname()
Returns the default queue manager name.

Specified by:
getQMname in interface MsgPumpController
Overrides:
getQMname in class NormalClient
See Also:
MsgPumpController.getQMname()

getNewInputThread

protected InputThread getNewInputThread()
Returns a new inputthread.

Overrides:
getNewInputThread in class NormalClient
Returns:
InputThread - a new inputthread

processInput

public void processInput(java.lang.String input)
Description copied from class: NormalClient
Deals with user input.

Overrides:
processInput in class NormalClient
Parameters:
input - The user input
Returns:
void
See Also:
NormalClient.processInput(String)

getNewModel

public MsgPumpModel getNewModel()
returns a pump server model.

Overrides:
getNewModel in class NormalClient
See Also:
NormalClient.getNewModel()

Websphere MQ Everyplace