Package org.jgroups.protocols
Class AUTH
java.lang.Object
org.jgroups.stack.Protocol
org.jgroups.protocols.AUTH
The AUTH protocol adds a layer of authentication to JGroups
- Author:
- Chris Mills
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn event is to be sent down the stack.After configuring the protocol itself from the properties defined in the XML config, a protocol might have additional objects which need to be configured.voidinit()Called after instance has been created (null constructor) and before protocol is started.protected voidsendJoinRejectionMessage(Address dest, String error_msg) protected voidsendMergeRejectionMessage(Address dest, String error_msg) protected voidsendRejectionMessage(byte type, Address dest, String error_msg) voidsetAuthClass(String class_name) An event was received from the layer below.Methods inherited from class org.jgroups.stack.Protocol
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getId, getLevel, getName, getProperties, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getValue, isErgonomics, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProperties, setPropertiesInternal, setProperty, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, start, statsEnabled, stop, upThreadEnabled
-
Constructor Details
-
AUTH
public AUTH()
-
-
Method Details
-
setAuthClass
- Throws:
Exception
-
getAuthClass
-
getConfigurableObjects
Description copied from class:ProtocolAfter configuring the protocol itself from the properties defined in the XML config, a protocol might have additional objects which need to be configured. This callback allows a protocol developer to configure those other objects. This call is guaranteed to be invoked after the protocol itself has been configured. See AUTH for an example.- Overrides:
getConfigurableObjectsin classProtocol- Returns:
-
init
Description copied from class:ProtocolCalled after instance has been created (null constructor) and before protocol is started. Properties are already set. Other protocols are not yet connected and events cannot yet be sent. -
up
An event was received from the layer below. Usually the current layer will want to examine the event type and - depending on its type - perform some computation (e.g. removing headers from a MSG event type, or updating the internal membership list when receiving a VIEW_CHANGE event). Finally the event is either a) discarded, or b) an event is sent down the stack usingdown_prot.down()or c) the event (or another event) is sent up the stack usingup_prot.up(). -
sendRejectionMessage
-
sendJoinRejectionMessage
-
sendMergeRejectionMessage
-
down
An event is to be sent down the stack. The layer may want to examine its type and perform some action on it, depending on the event's type. If the event is a message MSG, then the layer may need to add a header to it (or do nothing at all) before sending it down the stack usingdown_prot.down(). In case of a GET_ADDRESS event (which tries to retrieve the stack's address from one of the bottom layers), the layer may need to send a new response event back up the stack usingup_prot.up().
-