|
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.MQeChannelManager
This class is used to create a manager for the WebSphere MQ Everyplace logical channels.
This class is a descendant of MQe
Field Summary |
Constructor Summary | |
MQeChannelManager()
Deprecated. Constructs an MQeChannelManager object. |
Method Summary | |
int |
numberOfChannels(int newLimit)
Deprecated. Called to get the number of currently active logical channels. |
void |
process(MQeCommunicationsAdapter adapter)
Deprecated. Called to process data (bytes) received, destined for an WebSphere MQ Everyplace logical channel. |
byte[] |
process(MQeCommunicationsAdapter adapter,
byte[] byteContent)
Deprecated. Called to process data (bytes) received, destined for an WebSphere MQ Everyplace logical channel. |
void |
timeOut(long age)
Deprecated. Called to force any logical channels to be timed out if they have been idle for more than a specified interval. |
long |
totalNumberOfChannels()
Deprecated. Called to get the total number of channels that have been used since the channel manager was activated. |
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 |
Constructor Detail |
public MQeChannelManager()
Constructs an MQeChannelManager object.
MQeChannelManager cm = new MQeChannelManager();
Method Detail |
public int numberOfChannels(int newLimit)
Called to get the number of currently active logical channels.
This method returns the maximum number of permissible channels.
newLimit
- The new maximum number of concurrent channels
allowed by this channel manager, a value of 0 implies no limit.
MQeChannelManager cm = new MQeChannelManager(); int count = cm.numberOfChannels(0); return (count);
public void process(MQeCommunicationsAdapter adapter) throws java.lang.Exception
Called to process data (bytes) received, destined for an WebSphere MQ Everyplace logical channel.
An MQeAdapter
object as the only parameter. This is
used to read the data to be passed on to the logical channel.
adapter
- An MQeAdapter
object to be used for any
I/O operations.
MQeException
- Invalid channel or not allowed.
java.lang.Exception
public byte[] process(MQeCommunicationsAdapter adapter, byte[] byteContent) throws java.lang.Exception
Called to process data (bytes) received, destined for an WebSphere MQ Everyplace logical channel.
An MQeAdapter
(or null ) and an array of bytes.
The array contains the data to be processed by the logical channel.
This method is called in order to process a "Channel" request. The data passed in the ByteContent parameter contains the encrypted and/or compressed channel data.
adapter
- An MQeAdapter
object to be used for any
I/O operations.
MQeException
- Invalid channel or not allowed.
java.lang.Exception
try { MQeChannelManager cm = new MQeChannelManager(); cm.process(null, data); } catch (Exception e) {// hanlde the exception here. }
public void timeOut(long age)
Called to force any logical channels to be timed out if they have been idle for more than a specified interval.
This method is used to check all channels or one specific channel to see if they have been idle for more than age milliseconds. Any channels that have exceeded this time are closed.
age
- An interval in milliseconds. If the channel has been idle for
more than this interval it is considered to have timed out, and is closed.
MQeChannelManager cm = new MQeChannelManager(); cm.timeOut(30 * 60 * 1000);
public long totalNumberOfChannels()
Called to get the total number of channels that have been used since the channel manager was activated.
MQeChannelManager cm = new MQeChannelManager(); long count = cm.totalNumberOfChannels(); return (count);
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |