public class AUTH extends Protocol
Modifier and Type | Field and Description |
---|---|
protected AuthToken |
auth_token
used on the coordinator to authentication joining member requests against
|
protected static short |
gms_id |
Constructor and Description |
---|
AUTH() |
Modifier and Type | Method and Description |
---|---|
Object |
down(Event evt)
An event is to be sent down the stack.
|
String |
getAuthClass() |
AuthToken |
getAuthToken() |
protected List<Object> |
getConfigurableObjects()
After configuring the protocol itself from the properties defined in the XML config, a protocol might have
additional objects which need to be configured.
|
protected static GMS.GmsHeader |
getGMSHeader(Event evt)
Get the header from a GMS message
|
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
protected void |
sendJoinRejectionMessage(Address dest,
String error_msg) |
protected void |
sendMergeRejectionMessage(Address dest) |
protected void |
sendRejectionMessage(byte type,
Address dest,
String error_msg) |
void |
setAuthClass(String class_name) |
void |
setAuthToken(AuthToken token) |
Object |
up(Event evt)
An event was received from the layer below.
|
destroy, dumpStats, enableStats, getDownProtocol, getId, getLevel, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getValue, isErgonomics, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, start, statsEnabled, stop
protected AuthToken auth_token
protected static final short gms_id
public String getAuthClass()
public AuthToken getAuthToken()
public void setAuthToken(AuthToken token)
protected List<Object> getConfigurableObjects()
Protocol
getConfigurableObjects
in class Protocol
public void init() throws Exception
Protocol
public Object up(Event evt)
down_prot.down()
or c) the event (or another event) is sent up
the stack using up_prot.up()
.protected void sendMergeRejectionMessage(Address dest)
public Object down(Event evt)
down_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 using up_prot.up()
.protected static GMS.GmsHeader getGMSHeader(Event evt)
evt
- The event object passed in to AUTHCopyright © 2012 JBoss by Red Hat. All Rights Reserved.