Package com.isode.som.qmgr.objects
Class SomQmgrSchedule
java.lang.Object
com.isode.som.qmgr.objects.SomQmgrObject
com.isode.som.qmgr.objects.SomQmgrSchedule
- All Implemented Interfaces:
SomQmgrHandler,SomHandler
This class models a schedule set up with a peer MTA.
- Author:
- tc
-
Field Summary
Fields inherited from class com.isode.som.qmgr.objects.SomQmgrObject
errortext, somSession -
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrSchedule(SomSession session, String id) Create a new SomQmgrAssociation object for a specified channel and MTASomQmgrSchedule(SomSession session, String id, String[] pairs) Create a new SomQmgrAssociation object for a specified channel and MTA, populating it with data from type/value pairs -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Find out if this association is currently activeGet the association index value for the scheduleGet an information string for this schedulevoidhandleBindResponse(int status, String detail) Handle the response to a Bind operationvoidhandleResponse(SomCommand obj, int status, SomMessage msg) Handles the response to commands which return a SomMessage object (i.e.voidhandleResponse(SomCommand command, int status, SomQmgrChannel object) Handles the response to commands which return a list of channel objectsvoidhandleResponse(SomCommand command, int status, SomQmgrMessage object) Handles the response to commands which return a list of message objectsvoidhandleResponse(SomCommand command, int status, SomQmgrMta object) Handles the response to commands which return a list of MTA objectsvoidhandleResponse(SomCommand command, int status, SomQmgrQueueManager object) voidhandleResponse(SomCommand command, int status, String detail) Handles the response to control commands which return an OK/error response plus an info stringvoidhandleResponse(SomCommand command, int status, String[] pairs) Handles the response to commands which return data about the current object - i.e.booleanFind out if this association is permanentpriority()Get priority filter valueGet schedule idstart()Get string indicating the start time and date for this scheduleGet string indicating the start time for this schedulestop()Get string indicating the stop time and date for this schedulestoptime()Get string indicating the stop time for this scheduleweekdays()Get a string indicating on which days the schedule is activeMethods 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
-
Constructor Details
-
SomQmgrSchedule
Create a new SomQmgrAssociation object for a specified channel and MTA- Parameters:
session- Session object for association which may not be nullid- schedule id which may not be null
-
SomQmgrSchedule
Create a new SomQmgrAssociation object for a specified channel and MTA, populating it with data from type/value pairs- Parameters:
session- Session object for association which may not be nullid- schedule id which may not be nullpairs- Array of data pairs which may not be null
-
-
Method Details
-
scheduleId
Get schedule id- Returns:
- schedule ID
-
assocIndex
Get the association index value for the schedule- Returns:
- association index
- Throws:
SomException- on error
-
permanent
Find out if this association is permanent- Returns:
- true if permanent
- Throws:
SomException- on error
-
active
Find out if this association is currently active- Returns:
- true if active
- Throws:
SomException- on error
-
priority
Get priority filter value- Returns:
- priority value
- Throws:
SomException- on error
-
weekdays
Get a string indicating on which days the schedule is active- Returns:
- days-of-week string
- Throws:
SomException- on error
-
starttime
Get string indicating the start time for this schedule- Returns:
- time string
- Throws:
SomException- on error
-
stoptime
Get string indicating the stop time for this schedule- Returns:
- time string
- Throws:
SomException- on error
-
start
Get string indicating the start time and date for this schedule- Returns:
- UTC time string
- Throws:
SomException- on error
-
stop
Get string indicating the stop time and date for this schedule- Returns:
- UTC time string
- Throws:
SomException- on error
-
handleResponse
Description copied from interface:SomQmgrHandlerHandles the response to control commands which return an OK/error response plus an info string- Specified by:
handleResponsein interfaceSomHandler- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusdetail- detail on error
-
handleResponse
-
handleResponse
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a list of channel objects- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusobject- a channel object
-
handleResponse
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a list of MTA objects- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusobject- a SOM Qmgr MTA object
-
handleResponse
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a list of message objects- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusobject- a qmgr message object
-
handleBindResponse
Description copied from interface:SomHandlerHandle the response to a Bind operation- Specified by:
handleBindResponsein interfaceSomHandler- Parameters:
status- operation statusdetail- error detail on failure
-
handleResponse
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a SomMessage object (i.e. read from the Queue or Archive).- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
obj- the SOM commandstatus- operation statusmsg- a message object
-
handleResponse
Description copied from interface:SomQmgrHandlerHandles the response to commands which return data about the current object - i.e. we are refreshing an existing object.- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statuspairs- data pairs
-
buildInfoString
Get an information string for this schedule- Returns:
- information string
-