Class Overview
This process does little more than handling the state transition messages.
This is generally the case when the server needs to bootstrap when it comes
up.
Flow for a typical Master-slave state model
- Gets OFFLINE-SLAVE transition
- Figure out if it has any data and how old it is for the SLAVE partition
- If the data is fresh enough it can probably catch up from the replication stream of the
master
- If not, then it can use the messaging service provided by cluster manager to talk other nodes
to figure out if they have any backup
- Once it gets a response from other nodes in the cluster the process can decide which back up
it wants to use to bootstrap
Summary
Nested Classes |
class |
BootstrapProcess.CustomMessageHandlerFactory |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
cluster
Constant Value:
"cluster"
public
static
final
String
configFile
Constant Value:
"configFile"
public
static
final
String
help
public
static
final
String
hostAddress
public
static
final
String
hostPort
public
static
final
String
relayCluster
Constant Value:
"relayCluster"
public
static
final
String
stateModel
Constant Value:
"stateModelType"
public
static
final
String
transDelay
Constant Value:
"transDelay"
public
static
final
String
zkServer
Public Constructors
Public Methods
public
static
void
printUsage
(Options cliOptions)
public
static
CommandLine
processCommandLineArgs
(String[] cliArgs)