com.splunk
Class MessageCollection

java.lang.Object
  extended by com.splunk.Resource
      extended by com.splunk.ResourceCollection<T>
          extended by com.splunk.EntityCollection<Message>
              extended by com.splunk.MessageCollection
All Implemented Interfaces:
java.util.Map<java.lang.String,Message>

public class MessageCollection
extends EntityCollection<Message>

The MessageCollection class represents a collection of messages, providing access to Splunk system messages. Most messages are created by Splunkd to inform the user of system problems.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 Message create(java.lang.String name, java.lang.String value)
          Creates a new message.
 
Methods inherited from class com.splunk.EntityCollection
create, create, remove, remove
 
Methods inherited from class com.splunk.ResourceCollection
clear, containsKey, containsKey, containsValue, entrySet, equals, get, get, hashCode, isEmpty, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize
 
Methods inherited from class com.splunk.Resource
getName, getPath, getService, getTitle, invalidate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public Message create(java.lang.String name,
                      java.lang.String value)
Creates a new message.

Parameters:
name - The name (primary key) of the new message.
value - The message text.
Returns:
The new message.