public class SystemMonitorTask extends RepoRosterTask
| Constructor and Description |
|---|
SystemMonitorTask()
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(Queue<Packet> results)
Method description
|
Map<String,PropertyItem> |
getDefaultParams()
getDefaultParams method return task instance default configuration
parameters. |
String |
getHelp()
getHelp method returns task help information. |
Map<String,PropertyItem> |
getParams()
getParams method return task instance configuration parameters. |
void |
getStatistics(StatisticsList list)
Method description
|
String |
getType()
getType method returns the task type name. |
void |
init(Queue<Packet> results)
init method initializes task. |
protected void |
processMessage(Packet packet,
Queue<Packet> results)
Method description
|
protected void |
sendPacketOut(Packet input)
Method description
|
protected void |
sendPacketsOut(Queue<Packet> input)
Method description
|
void |
setParams(Map<String,Object> map)
Method description
|
addToRoster, loadRoster, removeFromRoster, setRosterItemAdmin, setRosterItemModerationAccepted, setRosterItemOwner, setRosterItemSubscribedaddNewSubscribers, addOutPacket, addToRoster, getDescription, getInstance, getJID, getRoster, getRosterItem, getStats, isAdmin, isAllowedToPost, isAllowedToSubscribe, processPacket, removeSubscribers, setJID, setRosterItemOnline, setStanzaReceiverpublic void destroy(Queue<Packet> results)
RepoRosterTaskdestroy in interface ReceiverTaskIfcdestroy in class RepoRosterTaskresults - a Queue value with all packets needed to send
upon task deletion.public Map<String,PropertyItem> getDefaultParams()
ReceiverTaskIfcgetDefaultParams method return task instance default configuration
parameters. The map should contains all possible parameters accepted by
the task in setParams method. Values may be empty but may
not be null. All of parameters should be converted to
String type to make it possible to display them in ad-hoc
command x-form. Parameters then should be converted back to whatever format
is needed when passed back in setParams method.
For more detailed information about configuration parameters please refer
to setParams method.getDefaultParams in interface ReceiverTaskIfcgetDefaultParams in class AbstractReceiverTaskMap value with task instance configuration parameters.ReceiverTaskIfc.setParams(Map)public String getHelp()
ReceiverTaskIfcgetHelp method returns task help information. This
general information about tasks abilties so when the user selects
task for creation he might know what the task is about. This is more
like class description rather then instance description.String value of task class help information.public Map<String,PropertyItem> getParams()
ReceiverTaskIfcgetParams method return task instance configuration parameters.
For more detailed information about configuration parameters please refer
to corresponding set method.getParams in interface ReceiverTaskIfcgetParams in class AbstractReceiverTaskMap value with task instance configuration parameters.ReceiverTaskIfc.setParams(Map)public void getStatistics(StatisticsList list)
ReceiverTaskIfcgetStatistics in interface ReceiverTaskIfcgetStatistics in class AbstractReceiverTasklist - is a StatisticsListpublic String getType()
ReceiverTaskIfcgetType method returns the task type name. This
name is displayed on the list of all tasks available for creation.
This is not a nick name of created task this is something more like
"Drupal forums connector" or "Interest group".
Like a Java class name is unique in JVM the task name must be
also inique for StanzaReceiver. Look at
task nick name for more details.String value of the task name.public void init(Queue<Packet> results)
ReceiverTaskIfcinit method initializes task. It allows also for a task to
send initial stanzas to user like available
presence or any other stanza which does make sense to
send at startup time.init in interface ReceiverTaskIfcinit in class AbstractReceiverTaskresults - a Queue<Packet> is a collection of
result packets to send out.public void setParams(Map<String,Object> map)
RepoRosterTasksetParams in interface ReceiverTaskIfcsetParams in class RepoRosterTaskmap - a Map value with configuration parameters.protected void processMessage(Packet packet, Queue<Packet> results)
AbstractReceiverTaskprocessMessage in class AbstractReceiverTaskprotected void sendPacketOut(Packet input)
input - Copyright © 2022 "Tigase, Inc.". All rights reserved.