Package com.isode.som.qmgr.objects
Class SomQmgrQueueManager
- java.lang.Object
-
- com.isode.som.qmgr.objects.SomQmgrObject
-
- com.isode.som.qmgr.objects.SomQmgrQueueManager
-
- All Implemented Interfaces:
SomQmgrHandler
,SomHandler
public class SomQmgrQueueManager extends SomQmgrObject implements SomQmgrHandler
This class models an M-Switch Queue Manager, and is the top level object from which the channels are accessed.- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description static int
QMGR_STATUS_CONGESTED
static int
QMGR_STATUS_DOWN
static int
QMGR_STATUS_HALTED
static int
QMGR_STATUS_QUIESCING
static int
QMGR_STATUS_RESTARTING
static int
QMGR_STATUS_UP
static int
SOM_QMGR_CONNECTED_ANON
static int
SOM_QMGR_CONNECTED_AUTH
static int
SOM_QMGR_CONNECTING
static int
SOM_QMGR_DEFAULT_PORT
static int
SOM_QMGR_DISCONNECTED
java.lang.Integer
som_version
-
Fields inherited from class com.isode.som.qmgr.objects.SomQmgrObject
errortext, somSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrQueueManager()
Create a new Queue Manager object with default settingsSomQmgrQueueManager(SomQmgrQueueManager qmgr, java.lang.String somSessionPrefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
addrIn()
Get the number of inbound addresses which have been receivedjava.lang.Integer
addrOut()
Get the number of outbound addresses processedjava.lang.Integer
archiveFreePercent()
Get percentage free space on archive filesystemvoid
auditString(java.lang.String type, java.lang.String key, java.lang.String value, SomCommandListener listener)
java.lang.String
boottime()
Get the time at which the Queue Manager was startedjava.lang.Integer
chanRate()
Get average number of channels blockedvoid
connect()
Connect to the Queue Manager, using the connection information already configuredvoid
connectACP127CM()
Connect to the ACP127 channelvoid
connectACPOTAM()
Connect to the OTAM serverjava.lang.Integer
currChans()
Get the current number of running channelsvoid
decrementMaxChannels(SomCommandListener listener)
Decrement the allowable maximum number of channels (by one)java.lang.String
dirname()
Get Queue Manager DN (if directory-based configuration is in use)void
disableAllChannels(SomCommandListener listener)
Disable all the channels of this Queue Managervoid
disableSubmission(SomCommandListener listener)
Disable submission into the Queue Managervoid
disconnect()
Disconnect from this Queue Manager (or ACP127 channel or OTAM server), assuming that we are already connectedvoid
enableAllChannels(SomCommandListener listener)
Enable all the channels of this Queue Managervoid
enableSubmission(SomCommandListener listener)
Enable submission into the Queue Managerjava.lang.Integer
failedConvert()
Get number of failed conversion operationsjava.lang.Integer
failedInAssoc()
Get number of failed inbound connectionsjava.lang.Integer
getACP127CMPort()
Get the TCP port on which is used for communication with ACP127 channelsjava.lang.Integer
getACP127RepairPort()
Get the ACP127 repair portjava.lang.String
getAcp127TestTapeTemplateDir()
Get the ACP127 Test Tape template directoryjava.lang.Integer
getACPOTAMPort()
Get the TCP port on which is used for communication with OTAM serversSomQmgrChannel
getChannel(com.isode.dsapi.DN channelDN)
Returns a SomQmgrChannel object of a specific channel, based on the channel DN.SomQmgrChannel[]
getChannels()
Obtain the set of channels on this M-Switch instancecom.isode.dsapi.DN
getConfigDN()
java.util.Date
getCurrentTime()
java.lang.Integer
getCurrentTimeOffset()
java.lang.String
getErrorText()
Get last error textjava.lang.String
getFriendlyName()
Get the configured Friendly Name for this Queue ManagerSomQmgrMessage[]
getHeldMessages()
Get a set of messages which are in the "held" statejava.lang.String
getHoldInfoString()
Get a string containing information about the number of "held" messagesjava.util.Vector<java.lang.String>
getHostAliases()
Get the aliases we have registed for this Queue Manager's hostnamejava.lang.String
getHostName()
Get the hostname for this Queue Managerjava.lang.String
getInfoString()
Get an information string about the Queue Managerjava.lang.Boolean
getNoServices()
Get indication of whether we want to manage services for this Queue Managerjava.lang.String
getPassword()
Get the password which we will use when connecting to this Queue Managerjava.lang.Integer
getPort()
Get the TCP port on which is used for communication with this Queue Managerjava.lang.String
getProductBanner()
java.lang.String
getProductExpiryDate()
java.lang.String
getProductFamily()
java.lang.String
getProductMaxVer()
java.lang.String
getProductName()
java.lang.String
getProductSubfeatures()
java.lang.String
getSaslMechanism()
Get the name of the SASL mechanismint
getState()
Get current connection state of Queue Managervoid
getStatus(SomCommandListener listener)
Refresh the status of the Queue Manager objectvoid
getSubordinateChannels(SomCommandListener listener)
Obtains the subordinate channels of this Queue Managervoid
getSubordinates(SomCommandListener listener)
Obtains the subordinate objects of this Queue Managerjava.lang.String
getUniqueName()
Get a unique display Name for this Queue Managerboolean
getUseACP127CMPort()
Find out if this Queue Manager object is using the ACP127 channel portboolean
getUseACP127OTAMPort()
Find out if this Queue Manager object is using the OTAM portboolean
getUseACP127RepairPort()
Find out if this Queue Manager object is using the ACP127 repair portjava.lang.String
getUsername()
Get the username which we will use when connecting to this Queue Managerboolean
getUseTls()
Get the value of the flag which indicates whether TLS should be usedvoid
handleBindResponse(int status, java.lang.String detail)
Handle the response to a Bind operationvoid
handleResponse(SomCommand obj, int status, SomMessage msg)
Handles the response to commands which return a SomMessage object (i.e.void
handleResponse(SomCommand command, int status, SomQmgrChannel object)
Handles the response to commands which return a list of channel objectsvoid
handleResponse(SomCommand command, int status, SomQmgrMessage object)
Handles the response to commands which return a list of message objectsvoid
handleResponse(SomCommand command, int status, SomQmgrMta object)
Handles the response to commands which return a list of MTA objectsvoid
handleResponse(SomCommand command, int status, java.lang.String detail)
Handles the response to control commands which return an OK/error response plus an info stringvoid
handleResponse(SomCommand command, int status, java.lang.String[] pairs)
Handles the response to commands which return data about the current object - i.e.java.lang.Integer
heldMsgs()
Get the current number of messages in the Queuejava.lang.String
hostname()
Get hostname of system on which the Queue Manager is runningjava.lang.Integer
inAssoc()
Get number of inbound associationsvoid
incrementMaxChannels(SomCommandListener listener)
Increment the allowable maximum number of channels (by one)boolean
isConnectionExpected()
Test whether we are expecting to connect to this Queue Managerboolean
isRemoteMTA()
java.lang.String
lastInboundTime()
Get time of last inbound connectionjava.lang.String
lastOperation()
java.lang.String
lastOperationTime()
java.lang.String
lastOutboundTime()
Get time of last outbound connectionjava.lang.Integer
loggingFreePercent()
Get percentage free space on logging filesystemjava.lang.Integer
loopsDetected()
Get number of loops detectedjava.lang.Integer
maxChans()
Get maximum number of channelsjava.lang.Integer
messagesIn()
Get number of inbound messages which have been processed.java.lang.Integer
messagesOut()
Get number of outbound messages which have been processed.void
minimise(int priority, java.util.Date start, java.util.Date stop, SomCommandListener listener)
Start a MINIMISE operationjava.lang.Integer
msgsInPerSec()
Get average number of inbound messages per secondjava.lang.Integer
msgsOutPerSec()
Get average number of outbound messages per secondjava.lang.Integer
oprateMax()
Get maximum operation ratejava.lang.Integer
oprateReserve()
Get reserve operation ratejava.lang.Integer
opsPerSecond()
Get average number of operations per secondjava.lang.String
osType()
Get operating system type string for Queue Manager systemjava.lang.Integer
outAssoc()
Get total number of outbound associations which have been made.void
performCkadr(SomCommandListener listener, SomQmgrHandler handler, SomQmgrCKADROptions options)
Asks the Queue Manager to check an addressjava.lang.Integer
queueFreePercent()
Get percentage free space on queue filesystemjava.lang.Integer
receivedVolume()
Get total received volume of messagesjava.lang.Integer
rejectedAssoc()
Get total number of rejected associationsvoid
reloadConfiguration(SomCommandListener listener)
Tell the Queue Manager to reload its configuration from the DSA.java.lang.String
reporttime()
Returns the time (local to the Queue Manager) at which the status check was performed.void
reprocess(SomCommandListener listener)
Perform a Reprocess operation on all Channels.void
rereadQueue(SomCommandListener listener)
Tell the Queue Manager to re-read its message queuevoid
restart(SomCommandListener listener)
Tell the Queue Manager to restart.java.lang.Integer
runnableChans()
Get the number of runnable channels on this Queue Managervoid
searchForHeldMessages(SomCommandListener listener)
Asks the Queue Manager to get a list of messages in state "held"void
setACP127CMPort(java.lang.Integer p)
Set the TCP port on which is used for communication with ACP127 channelsvoid
setAcp127TestTapeTemplateDir(java.lang.String acp127TestTapeTemplateDir)
Set the ACP127 Test Tape template directoryvoid
setACPOTAMPort(java.lang.Integer p)
Set the TCP port on which is used for communication with OTAM serversvoid
setConfigDN(com.isode.dsapi.DN configDN)
static void
setConnectionTimeout(int value)
Set the connection timeout used for all SOM sessions created via this objectvoid
setFriendlyName(java.lang.String fname)
Set the Friendly Name for this Queue Managervoid
setHostAliases(java.util.List<java.lang.String> hostAliases)
Set the aliases for this hostvoid
setHostName(java.lang.String n)
Set the hostname for this Queue Managervoid
setNoServices(java.lang.Boolean val)
Configure this Queue Manager as one for which we will not attempt to manage servicesvoid
setPassword(java.lang.String pwd)
Set the password which we will use when connecting to this Queue Managervoid
setPort(java.lang.Integer p)
Set the TCP port on which is used for communication with this Queue Managervoid
setRemoteMTA(boolean val)
void
setSaslMechanism(java.lang.String mech)
Configure the name of the SASL mechanism which we want to use for authenticationvoid
setUseACP127CMPort(boolean value)
Configure this Queue Manager object to use the ACP127 channel portvoid
setUseACP127OTAMPort(boolean value)
Configure this Queue Manager object to use the OTAM portvoid
setUsername(java.lang.String n)
Set the username which we will use when connecting to this Queue Managervoid
setUseTls(boolean use)
Set the flag which indicates whether TLS should be used for this connectionvoid
shutdown(SomCommandListener listener)
Tell the Queue Manager to shut downjava.lang.Integer
somVersion()
Get SOM version for the Queue Managerjava.lang.Integer
status()
Get Queue Manager status codejava.lang.String
statusString()
Get Queue Manager status as stringjava.lang.Integer
storedRecipients()
Get number of recipient addresses in queuejava.lang.Integer
totalDrs()
Get the total number of DRs in the Queuejava.lang.Integer
totalInAssoc()
Get the current number of inbound associations to the Queue Managerjava.lang.Integer
totalMsgs()
Get the current number of messages in the Queuejava.lang.Integer
totalOutAssoc()
Get the current number of outbound associations from the Queue Managerjava.lang.Integer
totalVolume()
Get the current volume of messages in the queuejava.lang.Integer
transmittedVolume()
Get total volume of transmitted messagesjava.lang.String
version()
Get Queue Manager version string-
Methods inherited from class com.isode.som.qmgr.objects.SomQmgrObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getDoubleAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, parsePairs, print, print_str, removeBindListener, setSkipNotifications
-
-
-
-
Field Detail
-
som_version
public java.lang.Integer som_version
-
SOM_QMGR_DISCONNECTED
public static final int SOM_QMGR_DISCONNECTED
- See Also:
- Constant Field Values
-
SOM_QMGR_CONNECTING
public static final int SOM_QMGR_CONNECTING
- See Also:
- Constant Field Values
-
SOM_QMGR_CONNECTED_ANON
public static final int SOM_QMGR_CONNECTED_ANON
- See Also:
- Constant Field Values
-
SOM_QMGR_CONNECTED_AUTH
public static final int SOM_QMGR_CONNECTED_AUTH
- See Also:
- Constant Field Values
-
SOM_QMGR_DEFAULT_PORT
public static final int SOM_QMGR_DEFAULT_PORT
- See Also:
- Constant Field Values
-
QMGR_STATUS_UP
public static final int QMGR_STATUS_UP
- See Also:
- Constant Field Values
-
QMGR_STATUS_DOWN
public static final int QMGR_STATUS_DOWN
- See Also:
- Constant Field Values
-
QMGR_STATUS_HALTED
public static final int QMGR_STATUS_HALTED
- See Also:
- Constant Field Values
-
QMGR_STATUS_CONGESTED
public static final int QMGR_STATUS_CONGESTED
- See Also:
- Constant Field Values
-
QMGR_STATUS_RESTARTING
public static final int QMGR_STATUS_RESTARTING
- See Also:
- Constant Field Values
-
QMGR_STATUS_QUIESCING
public static final int QMGR_STATUS_QUIESCING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SomQmgrQueueManager
public SomQmgrQueueManager()
Create a new Queue Manager object with default settings
-
SomQmgrQueueManager
public SomQmgrQueueManager(SomQmgrQueueManager qmgr, java.lang.String somSessionPrefix)
-
-
Method Detail
-
getChannels
public SomQmgrChannel[] getChannels()
Obtain the set of channels on this M-Switch instance- Returns:
- Array of channels
-
getHeldMessages
public SomQmgrMessage[] getHeldMessages()
Get a set of messages which are in the "held" state- Returns:
- Array of "held" messages
-
getChannel
public SomQmgrChannel getChannel(com.isode.dsapi.DN channelDN) throws SomException
Returns a SomQmgrChannel object of a specific channel, based on the channel DN. May return null, if none found.- Parameters:
channelDN
- DN representation of a specific channel.- Returns:
- SomQmgrChannel object for the given channelDN. Or returns null.
- Throws:
SomException
- if there is no string representation for an existing channel's name.
-
isConnectionExpected
public boolean isConnectionExpected()
Test whether we are expecting to connect to this Queue Manager- Returns:
- true if connection expected
-
getState
public int getState()
Get current connection state of Queue Manager- Returns:
- Connection state
-
handleBindResponse
public void handleBindResponse(int status, java.lang.String detail)
Description copied from interface:SomHandler
Handle the response to a Bind operation- Specified by:
handleBindResponse
in interfaceSomHandler
- Parameters:
status
- operation statusdetail
- error detail on failure
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String detail)
Description copied from interface:SomQmgrHandler
Handles the response to control commands which return an OK/error response plus an info string- Specified by:
handleResponse
in interfaceSomHandler
- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusdetail
- detail on error
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
Description copied from interface:SomQmgrHandler
Handles the response to commands which return data about the current object - i.e. we are refreshing an existing object.- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statuspairs
- data pairs
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrChannel object)
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a list of channel objects- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusobject
- a channel object
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrMta object)
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a list of MTA objects- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusobject
- a SOM Qmgr MTA object
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrMessage object)
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a list of message objects- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusobject
- a qmgr message object
-
handleResponse
public void handleResponse(SomCommand obj, int status, SomMessage msg)
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a SomMessage object (i.e. read from the Queue or Archive).- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
obj
- the SOM commandstatus
- operation statusmsg
- a message object
-
getInfoString
public java.lang.String getInfoString()
Get an information string about the Queue Manager- Returns:
- String of information about the Queue Manager for display
-
getHoldInfoString
public java.lang.String getHoldInfoString()
Get a string containing information about the number of "held" messages- Returns:
- information on held messages
-
getStatus
public void getStatus(SomCommandListener listener) throws SomException
Refresh the status of the Queue Manager object- Parameters:
listener
- Object to notify when update complete, which may be null- Throws:
SomException
- on error
-
getSubordinates
public void getSubordinates(SomCommandListener listener) throws SomException
Obtains the subordinate objects of this Queue Manager- Parameters:
listener
- Object to notify when update complete, which may be null- Throws:
SomException
- on error
-
getSubordinateChannels
public void getSubordinateChannels(SomCommandListener listener) throws SomException
Obtains the subordinate channels of this Queue Manager- Parameters:
listener
- Object to notify when update complete, which may be null- Throws:
SomException
- on error
-
searchForHeldMessages
public void searchForHeldMessages(SomCommandListener listener) throws SomException
Asks the Queue Manager to get a list of messages in state "held"- Parameters:
listener
- object to notify when command completes- Throws:
SomException
- on error
-
reprocess
public void reprocess(SomCommandListener listener) throws SomException
Perform a Reprocess operation on all Channels.- Parameters:
listener
- Listener to notify when operation is complete, which may be null- Throws:
SomException
- on error
-
performCkadr
public void performCkadr(SomCommandListener listener, SomQmgrHandler handler, SomQmgrCKADROptions options) throws SomException
Asks the Queue Manager to check an address- Parameters:
listener
- Object to notify when update complete, which may be nullhandler
- Object which will handle result of operation, which may not be nulloptions
- Arguments to ckadr operation- Throws:
SomException
- on error
-
getPort
public java.lang.Integer getPort()
Get the TCP port on which is used for communication with this Queue Manager- Returns:
- TCP port
-
setPort
public void setPort(java.lang.Integer p)
Set the TCP port on which is used for communication with this Queue Manager- Parameters:
p
- Port to use
-
getACP127CMPort
public java.lang.Integer getACP127CMPort()
Get the TCP port on which is used for communication with ACP127 channels- Returns:
- TCP port
-
setACP127CMPort
public void setACP127CMPort(java.lang.Integer p)
Set the TCP port on which is used for communication with ACP127 channels- Parameters:
p
- Port to use
-
getACPOTAMPort
public java.lang.Integer getACPOTAMPort()
Get the TCP port on which is used for communication with OTAM servers- Returns:
- TCP port
-
setACPOTAMPort
public void setACPOTAMPort(java.lang.Integer p)
Set the TCP port on which is used for communication with OTAM servers- Parameters:
p
- Port to use
-
getHostName
public java.lang.String getHostName()
Get the hostname for this Queue Manager- Returns:
- Hostname
-
setHostName
public void setHostName(java.lang.String n)
Set the hostname for this Queue Manager- Parameters:
n
- Hostname to use
-
getUsername
public java.lang.String getUsername()
Get the username which we will use when connecting to this Queue Manager- Returns:
- username
-
setUsername
public void setUsername(java.lang.String n)
Set the username which we will use when connecting to this Queue Manager- Parameters:
n
- Username for connection (may be a SASL id) which may not be null
-
getPassword
public java.lang.String getPassword()
Get the password which we will use when connecting to this Queue Manager- Returns:
- password
-
setPassword
public void setPassword(java.lang.String pwd)
Set the password which we will use when connecting to this Queue Manager- Parameters:
pwd
- Password which may be null
-
getFriendlyName
public java.lang.String getFriendlyName()
Get the configured Friendly Name for this Queue Manager- Returns:
- friendly name
-
getUniqueName
public java.lang.String getUniqueName()
Get a unique display Name for this Queue Manager- Returns:
- unique name
-
setFriendlyName
public void setFriendlyName(java.lang.String fname)
Set the Friendly Name for this Queue Manager- Parameters:
fname
- friendly name which may not be null
-
setConnectionTimeout
public static void setConnectionTimeout(int value)
Set the connection timeout used for all SOM sessions created via this object- Parameters:
value
- the timeout value
-
setUseTls
public void setUseTls(boolean use)
Set the flag which indicates whether TLS should be used for this connection- Parameters:
use
- true to use TLS
-
getUseTls
public boolean getUseTls()
Get the value of the flag which indicates whether TLS should be used- Returns:
- true if TLS in use
-
connect
public void connect() throws SomException
Connect to the Queue Manager, using the connection information already configured- Throws:
SomException
- on error
-
connectACP127CM
public void connectACP127CM() throws SomException
Connect to the ACP127 channel- Throws:
SomException
- on error
-
connectACPOTAM
public void connectACPOTAM() throws SomException
Connect to the OTAM server- Throws:
SomException
- on error
-
disconnect
public void disconnect() throws SomException
Disconnect from this Queue Manager (or ACP127 channel or OTAM server), assuming that we are already connected- Throws:
SomException
- on error
-
incrementMaxChannels
public void incrementMaxChannels(SomCommandListener listener) throws SomException
Increment the allowable maximum number of channels (by one)- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
decrementMaxChannels
public void decrementMaxChannels(SomCommandListener listener) throws SomException
Decrement the allowable maximum number of channels (by one)- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
enableSubmission
public void enableSubmission(SomCommandListener listener) throws SomException
Enable submission into the Queue Manager- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
disableSubmission
public void disableSubmission(SomCommandListener listener) throws SomException
Disable submission into the Queue Manager- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
enableAllChannels
public void enableAllChannels(SomCommandListener listener) throws SomException
Enable all the channels of this Queue Manager- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
disableAllChannels
public void disableAllChannels(SomCommandListener listener) throws SomException
Disable all the channels of this Queue Manager- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
rereadQueue
public void rereadQueue(SomCommandListener listener) throws SomException
Tell the Queue Manager to re-read its message queue- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
restart
public void restart(SomCommandListener listener) throws SomException
Tell the Queue Manager to restart. Note that this will not work on Windows - the command is ignored by the Queue Manager- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
shutdown
public void shutdown(SomCommandListener listener) throws SomException
Tell the Queue Manager to shut down- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
reloadConfiguration
public void reloadConfiguration(SomCommandListener listener) throws SomException
Tell the Queue Manager to reload its configuration from the DSA.- Parameters:
listener
- Object to be notified when operation complete, which may be null- Throws:
SomException
- on error
-
auditString
public void auditString(java.lang.String type, java.lang.String key, java.lang.String value, SomCommandListener listener) throws SomException
- Throws:
SomException
-
addrIn
public java.lang.Integer addrIn() throws SomException
Get the number of inbound addresses which have been received- Returns:
- number of inbound addresses
- Throws:
SomException
- on error
-
getErrorText
public java.lang.String getErrorText()
Get last error text- Returns:
- error text
-
addrOut
public java.lang.Integer addrOut() throws SomException
Get the number of outbound addresses processed- Returns:
- number of addresses
- Throws:
SomException
- on error
-
boottime
public java.lang.String boottime() throws SomException
Get the time at which the Queue Manager was started- Returns:
- start time (UTC Time string)
- Throws:
SomException
- on error
-
currChans
public java.lang.Integer currChans() throws SomException
Get the current number of running channels- Returns:
- number of running channels
- Throws:
SomException
- on error
-
inAssoc
public java.lang.Integer inAssoc() throws SomException
Get number of inbound associations- Returns:
- Number of inbound associations
- Throws:
SomException
- on error
-
maxChans
public java.lang.Integer maxChans() throws SomException
Get maximum number of channels- Returns:
- max channels
- Throws:
SomException
- on error
-
messagesIn
public java.lang.Integer messagesIn() throws SomException
Get number of inbound messages which have been processed.- Returns:
- number of inbound messages
- Throws:
SomException
- on error
-
messagesOut
public java.lang.Integer messagesOut() throws SomException
Get number of outbound messages which have been processed.- Returns:
- number of outbound messages
- Throws:
SomException
- on error
-
msgsInPerSec
public java.lang.Integer msgsInPerSec() throws SomException
Get average number of inbound messages per second- Returns:
- average number of inbound messages per second
- Throws:
SomException
- on error
-
msgsOutPerSec
public java.lang.Integer msgsOutPerSec() throws SomException
Get average number of outbound messages per second- Returns:
- average number of outbound messages per second
- Throws:
SomException
- on error
-
opsPerSecond
public java.lang.Integer opsPerSecond() throws SomException
Get average number of operations per second- Returns:
- average number of operations per second
- Throws:
SomException
- on error
-
outAssoc
public java.lang.Integer outAssoc() throws SomException
Get total number of outbound associations which have been made.- Returns:
- number of outbound associations
- Throws:
SomException
- on error
-
reporttime
public java.lang.String reporttime() throws SomException
Returns the time (local to the Queue Manager) at which the status check was performed. This allows the user of the SOM client API to detect differences between the clock settings on the client and Queue Manager systems (if any).- Returns:
- Queue Manager local time (UTC time string)
- Throws:
SomException
- on error
-
runnableChans
public java.lang.Integer runnableChans() throws SomException
Get the number of runnable channels on this Queue Manager- Returns:
- number of runnable channels
- Throws:
SomException
- on error
-
totalDrs
public java.lang.Integer totalDrs() throws SomException
Get the total number of DRs in the Queue- Returns:
- total number of DRs in Queue
- Throws:
SomException
- on error
-
totalInAssoc
public java.lang.Integer totalInAssoc() throws SomException
Get the current number of inbound associations to the Queue Manager- Returns:
- current number of inbound associations
- Throws:
SomException
- on error
-
totalMsgs
public java.lang.Integer totalMsgs() throws SomException
Get the current number of messages in the Queue- Returns:
- current number of messages in the queue
- Throws:
SomException
- on error
-
heldMsgs
public java.lang.Integer heldMsgs() throws SomException
Get the current number of messages in the Queue- Returns:
- current number of messages in the queue
- Throws:
SomException
- on error
-
totalOutAssoc
public java.lang.Integer totalOutAssoc() throws SomException
Get the current number of outbound associations from the Queue Manager- Returns:
- current number of outbound associations
- Throws:
SomException
- on error
-
totalVolume
public java.lang.Integer totalVolume() throws SomException
Get the current volume of messages in the queue- Returns:
- volume of message in the queue
- Throws:
SomException
- on error
-
version
public java.lang.String version() throws SomException
Get Queue Manager version string- Returns:
- version string
- Throws:
SomException
- on error
-
hostname
public java.lang.String hostname() throws SomException
Get hostname of system on which the Queue Manager is running- Returns:
- hostname of Queue Manager system
- Throws:
SomException
- on error
-
chanRate
public java.lang.Integer chanRate() throws SomException
Get average number of channels blocked- Returns:
- channel block rate
- Throws:
SomException
- on error
-
dirname
public java.lang.String dirname() throws SomException
Get Queue Manager DN (if directory-based configuration is in use)- Returns:
- Queue Manager DN
- Throws:
SomException
- on error
-
failedConvert
public java.lang.Integer failedConvert() throws SomException
Get number of failed conversion operations- Returns:
- number of failed conversions
- Throws:
SomException
- on error
-
failedInAssoc
public java.lang.Integer failedInAssoc() throws SomException
Get number of failed inbound connections- Returns:
- number of failed inbound connections
- Throws:
SomException
- on error
-
lastInboundTime
public java.lang.String lastInboundTime() throws SomException
Get time of last inbound connection- Returns:
- time of last inbound connection (UTC Time string)
- Throws:
SomException
- on error
-
lastOutboundTime
public java.lang.String lastOutboundTime() throws SomException
Get time of last outbound connection- Returns:
- time of last outbound connection (UTC Time string)
- Throws:
SomException
- on error
-
loopsDetected
public java.lang.Integer loopsDetected() throws SomException
Get number of loops detected- Returns:
- number of loops detected
- Throws:
SomException
- on error
-
oprateMax
public java.lang.Integer oprateMax() throws SomException
Get maximum operation rate- Returns:
- max operation rate
- Throws:
SomException
- on error
-
oprateReserve
public java.lang.Integer oprateReserve() throws SomException
Get reserve operation rate- Returns:
- reserve operation rate
- Throws:
SomException
- on error
-
receivedVolume
public java.lang.Integer receivedVolume() throws SomException
Get total received volume of messages- Returns:
- total volume received
- Throws:
SomException
- on error
-
rejectedAssoc
public java.lang.Integer rejectedAssoc() throws SomException
Get total number of rejected associations- Returns:
- total number of rejected associations
- Throws:
SomException
- on error
-
somVersion
public java.lang.Integer somVersion() throws SomException
Get SOM version for the Queue Manager- Returns:
- SOM version
- Throws:
SomException
- on error
-
status
public java.lang.Integer status() throws SomException
Get Queue Manager status code- Returns:
- status code
- Throws:
SomException
- on error
-
statusString
public java.lang.String statusString() throws SomException
Get Queue Manager status as string- Returns:
- status string
- Throws:
SomException
- on error
-
osType
public java.lang.String osType() throws SomException
Get operating system type string for Queue Manager system- Returns:
- OS type string
- Throws:
SomException
- on error
-
storedRecipients
public java.lang.Integer storedRecipients() throws SomException
Get number of recipient addresses in queue- Returns:
- number of recipient address in queue
- Throws:
SomException
- on error
-
transmittedVolume
public java.lang.Integer transmittedVolume() throws SomException
Get total volume of transmitted messages- Returns:
- total transmitted volume (kilobytes)
- Throws:
SomException
- on error
-
minimise
public void minimise(int priority, java.util.Date start, java.util.Date stop, SomCommandListener listener) throws SomException
Start a MINIMISE operation- Parameters:
priority
- minimum priority for MINIMISEstart
- start time (UTC time string) which may be nullstop
- stop time (UTC time string) which may be nulllistener
- object to be notified when operation complete which may be null- Throws:
SomException
- on error
-
getCurrentTimeOffset
public java.lang.Integer getCurrentTimeOffset()
- Returns:
- difference between localhost current time and qmgr current time in seconds
-
getCurrentTime
public java.util.Date getCurrentTime()
- Returns:
- current time of the qmgr
-
getHostAliases
public java.util.Vector<java.lang.String> getHostAliases()
Get the aliases we have registed for this Queue Manager's hostname- Returns:
- Vector of alias names
-
setHostAliases
public void setHostAliases(java.util.List<java.lang.String> hostAliases)
Set the aliases for this host- Parameters:
hostAliases
- which may be null
-
setNoServices
public void setNoServices(java.lang.Boolean val)
Configure this Queue Manager as one for which we will not attempt to manage services- Parameters:
val
- true if we do not want to manage services
-
getNoServices
public java.lang.Boolean getNoServices()
Get indication of whether we want to manage services for this Queue Manager- Returns:
- true if we do not want to manage services
-
setSaslMechanism
public void setSaslMechanism(java.lang.String mech)
Configure the name of the SASL mechanism which we want to use for authentication- Parameters:
mech
- mechanism name which may be null
-
getSaslMechanism
public java.lang.String getSaslMechanism()
Get the name of the SASL mechanism- Returns:
- SASL mechanism name
-
setUseACP127OTAMPort
public void setUseACP127OTAMPort(boolean value)
Configure this Queue Manager object to use the OTAM port- Parameters:
value
- true if this object should use the OTAM port
-
setUseACP127CMPort
public void setUseACP127CMPort(boolean value)
Configure this Queue Manager object to use the ACP127 channel port- Parameters:
value
- true if this object should use the ACP127 channel port
-
getUseACP127OTAMPort
public boolean getUseACP127OTAMPort()
Find out if this Queue Manager object is using the OTAM port- Returns:
- true if this object is using the OTAM port
-
getUseACP127CMPort
public boolean getUseACP127CMPort()
Find out if this Queue Manager object is using the ACP127 channel port- Returns:
- true if this object is using the ACP127 channel port
-
getAcp127TestTapeTemplateDir
public java.lang.String getAcp127TestTapeTemplateDir()
Get the ACP127 Test Tape template directory- Returns:
- test tape template directory
-
setAcp127TestTapeTemplateDir
public void setAcp127TestTapeTemplateDir(java.lang.String acp127TestTapeTemplateDir)
Set the ACP127 Test Tape template directory- Parameters:
acp127TestTapeTemplateDir
- test tape template directory
-
getUseACP127RepairPort
public boolean getUseACP127RepairPort()
Find out if this Queue Manager object is using the ACP127 repair port- Returns:
- true if this object is using the ACP127 repair port
-
getACP127RepairPort
public java.lang.Integer getACP127RepairPort()
Get the ACP127 repair port- Returns:
- the ACP127 repair port
-
loggingFreePercent
public java.lang.Integer loggingFreePercent() throws SomException
Get percentage free space on logging filesystem- Returns:
- percentage
- Throws:
SomException
- on error
-
archiveFreePercent
public java.lang.Integer archiveFreePercent() throws SomException
Get percentage free space on archive filesystem- Returns:
- percentage
- Throws:
SomException
- on error
-
queueFreePercent
public java.lang.Integer queueFreePercent() throws SomException
Get percentage free space on queue filesystem- Returns:
- percentage
- Throws:
SomException
- on error
-
lastOperation
public java.lang.String lastOperation() throws SomException
- Throws:
SomException
-
lastOperationTime
public java.lang.String lastOperationTime() throws SomException
- Throws:
SomException
-
getConfigDN
public com.isode.dsapi.DN getConfigDN()
-
setConfigDN
public void setConfigDN(com.isode.dsapi.DN configDN)
-
isRemoteMTA
public boolean isRemoteMTA()
-
setRemoteMTA
public void setRemoteMTA(boolean val)
-
getProductMaxVer
public java.lang.String getProductMaxVer() throws SomException
- Throws:
SomException
-
getProductExpiryDate
public java.lang.String getProductExpiryDate() throws SomException
- Throws:
SomException
-
getProductName
public java.lang.String getProductName() throws SomException
- Throws:
SomException
-
getProductFamily
public java.lang.String getProductFamily() throws SomException
- Throws:
SomException
-
getProductSubfeatures
public java.lang.String getProductSubfeatures() throws SomException
- Throws:
SomException
-
getProductBanner
public java.lang.String getProductBanner() throws SomException
- Throws:
SomException
-
-