@InterfaceAudience.Private public class MonitoredRPCHandlerImpl extends Object implements MonitoredRPCHandler
MonitoredTask.State, MonitoredTask.StatusJournalEntry| 限定符和类型 | 字段和说明 |
|---|---|
protected MonitoredTask.State |
state |
| 构造器和说明 |
|---|
MonitoredRPCHandlerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort(String msg) |
void |
cleanup()
Explicitly mark this status as able to be cleaned up,
even though it might not be complete.
|
MonitoredRPCHandlerImpl |
clone()
Public exposure of Object.clone() in order to allow clients to easily
capture current state.
|
void |
disableStatusJournal() |
void |
enableStatusJournal(boolean includeCurrentStatus)
Enables journaling of this monitored task, the first invocation will lazily initialize the
journal.
|
void |
expireNow()
Force the completion timestamp backwards so that
it expires now.
|
String |
getClient()
If an RPC call is currently running, produces a String representation of
the connection from which it was received.
|
long |
getCompletionTimestamp() |
String |
getDescription() |
String |
getRPC()
Produces a string representation of the method currently being serviced
by this Handler.
|
String |
getRPC(boolean withParams)
Produces a string representation of the method currently being serviced
by this Handler.
|
long |
getRPCPacketLength()
Produces a string representation of the method currently being serviced
by this Handler.
|
long |
getRPCQueueTime()
Accesses the queue time for the currently running RPC on the
monitored Handler.
|
long |
getRPCStartTime()
Accesses the start time for the currently running RPC on the
monitored Handler.
|
long |
getStartTime() |
MonitoredTask.State |
getState() |
long |
getStateTime() |
String |
getStatus()
Gets the status of this handler; if it is currently servicing an RPC,
this status will include the RPC information.
|
List<MonitoredTask.StatusJournalEntry> |
getStatusJournal()
Returns the status journal.
|
long |
getStatusTime() |
long |
getWarnTime() |
boolean |
isOperationRunning()
Indicates to the client whether this task is monitoring a currently active
RPC call to a database command.
|
boolean |
isRPCRunning()
Indicates to the client whether this task is monitoring a currently active
RPC call.
|
void |
markComplete(String status) |
void |
pause(String msg) |
String |
prettyPrintJournal() |
void |
resume(String msg) |
void |
setConnection(String clientAddress,
int remotePort)
Registers current handler client details.
|
void |
setDescription(String description) |
void |
setRPC(String methodName,
Object[] params,
long queueTime)
Tells this instance that it is monitoring a new RPC call.
|
void |
setRPCPacket(org.apache.hbase.thirdparty.com.google.protobuf.Message param)
Gives this instance a reference to the protobuf received by the RPC, so
that it can later compute its size if asked for it.
|
protected void |
setState(MonitoredTask.State state) |
void |
setStatus(String status) |
void |
setWarnTime(long t) |
String |
toJSON()
Creates a JSON object for parseable exposure of monitored tasks.
|
Map<String,Object> |
toMap()
Creates a string map of internal details for extensible exposure of
monitored tasks.
|
String |
toString() |
abort, cleanup, disableStatusJournal, enableStatusJournal, expireNow, getCompletionTimestamp, getDescription, getStartTime, getState, getStateTime, getStatusJournal, getStatusTime, getWarnTime, pause, prettyPrintJournal, resume, setDescription, setStatus, setWarnTime, toJSONprotected volatile MonitoredTask.State state
public MonitoredRPCHandlerImpl clone()
MonitoredTaskclone 在接口中 MonitoredTaskpublic String getStatus()
getStatus 在接口中 MonitoredTaskpublic long getRPCQueueTime()
getRPCQueueTime 在接口中 MonitoredRPCHandlerpublic long getRPCStartTime()
getRPCStartTime 在接口中 MonitoredRPCHandlerpublic String getRPC()
getRPC 在接口中 MonitoredRPCHandlerpublic String getRPC(boolean withParams)
getRPC 在接口中 MonitoredRPCHandlerwithParams - toggle inclusion of parameters in the RPC Stringpublic long getRPCPacketLength()
getRPCPacketLength 在接口中 MonitoredRPCHandlerpublic String getClient()
getClient 在接口中 MonitoredRPCHandlerpublic boolean isRPCRunning()
isRPCRunning 在接口中 MonitoredRPCHandlerpublic boolean isOperationRunning()
isOperationRunning 在接口中 MonitoredRPCHandlerpublic void setRPC(String methodName, Object[] params, long queueTime)
setRPC 在接口中 MonitoredRPCHandlermethodName - The name of the method that will be called by the RPC.params - The parameters that will be passed to the indicated method.public void setRPCPacket(org.apache.hbase.thirdparty.com.google.protobuf.Message param)
setRPCPacket 在接口中 MonitoredRPCHandlerparam - The protobuf received by the RPC for this callpublic void setConnection(String clientAddress, int remotePort)
setConnection 在接口中 MonitoredRPCHandlerclientAddress - the address of the current clientremotePort - the port from which the client connectedpublic void markComplete(String status)
markComplete 在接口中 MonitoredTaskpublic Map<String,Object> toMap()
MonitoredTasktoMap 在接口中 MonitoredTaskpublic String toString()
public long getStartTime()
getStartTime 在接口中 MonitoredTaskpublic String getDescription()
getDescription 在接口中 MonitoredTaskpublic long getStatusTime()
getStatusTime 在接口中 MonitoredTaskpublic MonitoredTask.State getState()
getState 在接口中 MonitoredTaskpublic long getStateTime()
getStateTime 在接口中 MonitoredTaskpublic long getWarnTime()
getWarnTime 在接口中 MonitoredTaskpublic long getCompletionTimestamp()
getCompletionTimestamp 在接口中 MonitoredTaskpublic void pause(String msg)
pause 在接口中 MonitoredTaskpublic void resume(String msg)
resume 在接口中 MonitoredTaskpublic void abort(String msg)
abort 在接口中 MonitoredTaskpublic void setStatus(String status)
setStatus 在接口中 MonitoredTaskprotected void setState(MonitoredTask.State state)
public void setDescription(String description)
setDescription 在接口中 MonitoredTaskpublic void setWarnTime(long t)
setWarnTime 在接口中 MonitoredTaskpublic void cleanup()
MonitoredTaskcleanup 在接口中 MonitoredTaskpublic void expireNow()
expireNow 在接口中 MonitoredTaskpublic String toJSON() throws IOException
MonitoredTasktoJSON 在接口中 MonitoredTaskIOExceptionpublic List<MonitoredTask.StatusJournalEntry> getStatusJournal()
getStatusJournal 在接口中 MonitoredTaskpublic void enableStatusJournal(boolean includeCurrentStatus)
enableStatusJournal 在接口中 MonitoredTaskincludeCurrentStatus - whether to include the current set status in the journalpublic void disableStatusJournal()
disableStatusJournal 在接口中 MonitoredTaskpublic String prettyPrintJournal()
prettyPrintJournal 在接口中 MonitoredTaskCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.