|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.MQe | +--com.ibm.mqe.MQeChannelListener
This class is used to create a listener for incoming WebSphere MQ Everyplace logical channels.
This class is a descendant of MQe
.
Field Summary |
Fields inherited from interface com.ibm.mqe.MQePropertyProvider |
version |
Constructor Summary | |
MQeChannelListener()
Deprecated. Constructs an MQeChannelListener object. |
|
MQeChannelListener(java.lang.Object listener,
java.lang.String fileType,
java.lang.Object processor)
Deprecated. Constructs an MQeChannelListener object taking the following parameters. |
Method Summary | |
void |
activate(java.lang.Object listener,
java.lang.String fileType,
java.lang.Object processor)
Deprecated. Activates the channel listener if it was not activated by the class constructor. |
java.lang.String |
getProperty(java.lang.String key)
Deprecated. Implementors of the MQePropertyProvider interface must provide the getProperty method which will return a String containing the given value for the key provided. |
void |
setTimer(int interval)
Deprecated. Called to set up a time-out interval for any channels accepted by this channel listener. |
void |
stop()
Deprecated. Called to stop the channel listener accepting any new inbound requests. |
Methods inherited from class com.ibm.mqe.MQe |
abbreviate, alias, asciiToByte, byteToAscii, byteToHex, byteToHex, byteToInt, byteToLong, byteToShort, byteToUnicode, fileSeparator, getEventLogHandler, hexToAscii, hexToByte, intToByte, isCLDC, loadClass, loadObject, log, setEventLogHandler, setLoader, sliceByteArray, type, unicodeToByte, uniqueValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
Constructor Detail |
public MQeChannelListener() throws java.lang.Exception
Constructs an MQeChannelListener object.
The class is instantiated but not activated. In order to activate the class the activate() method must be called.
java.lang.Exception
try { MQeChannelListener cl = new MQeChannelListener(); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
public MQeChannelListener(java.lang.Object listener, java.lang.String fileType, java.lang.Object processor) throws java.lang.Exception
Constructs an MQeChannelListener object taking the following parameters.
java.lang.Exception
try { MQeChannelListener cl = new MQeChannelListener(listener, fileType, new MQeChannelManager()); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
Method Detail |
public java.lang.String getProperty(java.lang.String key)
MQePropertyProvider
Implementors of the MQePropertyProvider interface must provide the getProperty method which will return a String containing the given value for the key provided.
getProperty
in interface MQePropertyProvider
key
- A string containing the name of the property to retrieve from the available
properties. The key follows the same naming convention as Java properties, for
instance com.ibm.mqe.adapters.MQeTcpipLengthAdapter.Timeout would be used to
retrieve the timeout property for the MQeTcpipLengthAdapter class. If the
implementing class does not have the required information it can then use the key to
interrogate the Java properties.
public void setTimer(int interval) throws java.lang.Exception
Called to set up a time-out interval for any channels accepted by this channel listener.
This method is used to set a channel time-out interval for any channels accepted by this channel listener.
interval
- An integer value in seconds of the desired time out interval.
MQeException
- Invalid channel or not allowed.
java.io.IOException
- Error performing I/O operations.
java.lang.Exception
try { MQeChannelListener cl = new MQeChannelListener(); cl.activate(listener, fileType, new MQeChannelManager()); cl.setTimer(300); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
public void activate(java.lang.Object listener, java.lang.String fileType, java.lang.Object processor) throws java.lang.Exception
Activates the channel listener if it was not activated by the class constructor.
Activates an MQeChannelListener object. This is normally used only if the class was instantiated using a constructor with no parameters.
java.lang.Exception
try { MQeChannelListener cl = new MQeChannelListener(); cl.activate(listener, fileType, new MQeChannelManager()); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
public void stop()
Called to stop the channel listener accepting any new inbound requests.
try { MQeChannelListener cl = new MQeChannelListener(); cl.activate(listener, fileType, new MQeChannelManager()); cl.stop(); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |