public class MacNodeIdentifierStrategy extends Object implements NodeIdentifierStrategy
| Modifier and Type | Field and Description |
|---|---|
protected long |
nodeIdentifier |
protected static Random |
random |
| Constructor and Description |
|---|
MacNodeIdentifierStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getHardwareAddress()
|
long |
getNodeIdentifier()
Get the machine address.
|
protected long |
getRandomMulticastNodeIdentifier()
Return a random generated node identifier.
|
protected long nodeIdentifier
protected static Random random
public long getNodeIdentifier()
getNodeIdentifier in interface NodeIdentifierStrategyprotected long getHardwareAddress()
protected long getRandomMulticastNodeIdentifier()
getNodeIdentifier()Copyright © 2019. All rights reserved.