org.jboss.osgi.testing
Interface ClipboardMBean


public interface ClipboardMBean

A simple clipboard to pass messages

Since:
20-Apr-2010
Author:
thomas.diesler@jboss.com

Field Summary
static String OBJECTNAME
          The default object name: jboss.osgi:service=jmx,type=Clipboard
 
Method Summary
 void addMessage(String message)
          Add a message to the clipboard
 void clearMessages()
          Clear the messages on the clipboard.
 String getLastMessage()
          Get the last message added to the list.
 String getMessage(int index)
          Get the message at the given index.
 int getMessageCount()
          Get the current message count.
 List<String> getMessages()
          Get the unmodifieable list of clipboard messages
 String removeMessage(int index)
          Remove the message at the given index.
 

Field Detail

OBJECTNAME

static final String OBJECTNAME
The default object name: jboss.osgi:service=jmx,type=Clipboard

See Also:
Constant Field Values
Method Detail

addMessage

void addMessage(String message)
Add a message to the clipboard


getMessages

List<String> getMessages()
Get the unmodifieable list of clipboard messages


getMessageCount

int getMessageCount()
Get the current message count.


getMessage

String getMessage(int index)
Get the message at the given index.


getLastMessage

String getLastMessage()
Get the last message added to the list.


removeMessage

String removeMessage(int index)
Remove the message at the given index.


clearMessages

void clearMessages()
Clear the messages on the clipboard.



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.