Class Overview
Controller side restlet server that receives ZNRecordUpdate requests from
clients, and batch the ZNRecordUpdate and apply them to zookeeper. This is
to optimize the concurrency level of zookeeper access for ZNRecord updates
that does not require real-time, like message handling status updates and
healthcheck reports.
As one server will be used by multiple helix controllers that runs on the same machine,
This class is designed as a singleton. Application is responsible to call init()
and shutdown() on the getInstance().
Summary
[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
PORT
public
static
final
String
SERVER
Constant Value:
"ZKPropertyTransferServer"
Fields
public
static
int
MAX_UPDATE_LIMIT
public
static
String
RESTRESOURCENAME
Public Methods
public
String
getWebserviceUrl
()
public
void
init
(int localWebservicePort, String zkAddress)
public
boolean
isInitialized
()