public class Whiteboard extends java.applet.Applet implements MessageListener, MembershipListener, java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener
| 限定符和类型 | 字段和说明 |
|---|---|
RpcDispatcher |
disp |
static java.lang.String |
groupname |
| 构造器和说明 |
|---|
Whiteboard() |
Whiteboard(java.lang.String properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addNode(java.lang.String lbl,
Address addr,
int xloc,
int yloc) |
void |
block()
Called (usually by the FLUSH protocol), as an indication that the member should stop sending
messages.
|
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
destroy() |
void |
displayMessage(java.lang.String sender,
java.lang.String msg) |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
void |
getState(java.io.OutputStream ostream)
Allows an application to write a state through a provided OutputStream.
|
void |
init() |
static void |
main(java.lang.String[] args) |
void |
moveNode(Node n) |
void |
receive(Message m)
Called when a message is received.
|
void |
removeNode(java.lang.Object addr) |
void |
repaint() |
void |
setState(java.io.InputStream istream)
Allows an application to read a state through a provided InputStream.
|
void |
suspect(Address obj)
Called whenever a member is suspected of having crashed, but has not yet been excluded.
|
void |
unblock()
Called after the FLUSH protocol has unblocked previously blocked senders, and
messages can be sent again.
|
void |
viewAccepted(View v)
Called when a change in membership has occurred.
|
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stopadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic RpcDispatcher disp
public static final java.lang.String groupname
public void receive(Message m)
MessageListenerreceive 在接口中 MessageListenerpublic void getState(java.io.OutputStream ostream)
throws java.lang.Exception
MessageListenergetState 在接口中 MessageListenerostream - the OutputStreamjava.lang.Exception - if the streaming fails, any exceptions should be thrown so that the state requester
can re-throw them and let the caller know what happenedOutputStream.close()public void setState(java.io.InputStream istream)
throws java.lang.Exception
MessageListenersetState 在接口中 MessageListeneristream - the InputStreamjava.lang.Exception - if the streaming fails, any exceptions should be thrown so that the state requester
can catch them and thus know what happenedInputStream.close()public void init()
init 在类中 java.applet.Appletpublic void destroy()
destroy 在类中 java.applet.Appletpublic void repaint()
repaint 在类中 java.awt.Componentpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed 在接口中 java.awt.event.ActionListenerpublic void viewAccepted(View v)
MembershipListenerChannel.connect(String) returns.viewAccepted 在接口中 MembershipListenerpublic void suspect(Address obj)
MembershipListenersuspect 在接口中 MembershipListenerpublic void block()
MembershipListenerMembershipListener.unblock(). Note that block() is the equivalent
of reception of a BlockEvent in the pull mode.block 在接口中 MembershipListenerpublic void unblock()
MembershipListener
Note that during new view installation we provide guarantee that unblock invocation strictly follows view installation at some node A belonging to that view . However, some other message M may squeeze in between view and unblock callbacks.
For more details see https://jira.jboss.org/jira/browse/JGRP-986
unblock 在接口中 MembershipListenerpublic void moveNode(Node n)
public void addNode(java.lang.String lbl,
Address addr,
int xloc,
int yloc)
public void removeNode(java.lang.Object addr)
public void displayMessage(java.lang.String sender,
java.lang.String msg)
public void componentResized(java.awt.event.ComponentEvent e)
componentResized 在接口中 java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved 在接口中 java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown 在接口中 java.awt.event.ComponentListenerpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden 在接口中 java.awt.event.ComponentListenerpublic void focusGained(java.awt.event.FocusEvent e)
focusGained 在接口中 java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost 在接口中 java.awt.event.FocusListenerpublic static void main(java.lang.String[] args)