org.apache.accumulo.server.tabletserver
Class TabletServer
java.lang.Object
org.apache.accumulo.server.metrics.AbstractMetricsImpl
org.apache.accumulo.server.tabletserver.TabletServer
- All Implemented Interfaces:
- TabletServerMBean
public class TabletServer
- extends AbstractMetricsImpl
- implements TabletServerMBean
Method Summary |
void |
addLoggersToMetadata(java.util.List<RemoteLogger> logs,
KeyExtent extent,
int id)
|
void |
config(java.lang.String[] args)
|
int |
createLogId(KeyExtent tablet)
|
double |
getAverageFilesPerTablet()
|
java.lang.String |
getClientAddressString()
|
long |
getEntries()
|
long |
getEntriesInMemory()
|
double |
getHoldTime()
|
long |
getIngest()
|
java.util.Set<java.lang.String> |
getLoggers()
|
int |
getMajorCompactions()
|
int |
getMajorCompactionsQueued()
|
protected java.lang.String |
getMetricsPrefix()
|
int |
getMinorCompactions()
|
int |
getMinorCompactionsQueued()
|
java.lang.String |
getName()
|
protected javax.management.ObjectName |
getObjectName()
|
int |
getOnlineCount()
|
int |
getOpeningCount()
|
long |
getQueries()
|
TabletServerStatus |
getStats()
|
TabletStatsKeeper |
getStatsKeeper()
|
long |
getTotalMinorCompactions()
|
int |
getUnopenedCount()
|
static void |
main(java.lang.String[] args)
|
void |
minorCompactionFinished(Tablet.CommitSession tablet,
java.lang.String newDatafile,
int walogSeq)
|
void |
minorCompactionStarted(Tablet.CommitSession tablet,
int lastUpdateSequence,
java.lang.String newMapfileLocation)
|
void |
recover(Tablet tablet,
java.util.List<MetadataTable.LogEntry> logEntries,
java.util.Set<java.lang.String> tabletFiles,
MutationReceiver mutationReceiver)
|
void |
run()
|
static java.util.SortedMap<KeyExtent,org.apache.hadoop.io.Text> |
verifyTabletInformation(KeyExtent extent,
TServerInstance instance,
java.util.SortedMap<Key,Value> tabletsKeyValues,
java.lang.String clientAddress,
ZooLock lock)
|
Methods inherited from class org.apache.accumulo.server.metrics.AbstractMetricsImpl |
add, createMetric, finalize, getMetric, getMetricAvg, getMetricCount, getMetricMax, getMetricMin, isEnabled, register, register |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mincMetrics
protected TabletServerMinCMetrics mincMetrics
lastPingTime
public long lastPingTime
currentMaster
public java.net.Socket currentMaster
TabletServer
public TabletServer()
getStatsKeeper
public TabletStatsKeeper getStatsKeeper()
getLoggers
public java.util.Set<java.lang.String> getLoggers()
throws org.apache.thrift.TException,
MasterNotRunningException,
ThriftSecurityException
- Throws:
org.apache.thrift.TException
MasterNotRunningException
ThriftSecurityException
addLoggersToMetadata
public void addLoggersToMetadata(java.util.List<RemoteLogger> logs,
KeyExtent extent,
int id)
run
public void run()
verifyTabletInformation
public static java.util.SortedMap<KeyExtent,org.apache.hadoop.io.Text> verifyTabletInformation(KeyExtent extent,
TServerInstance instance,
java.util.SortedMap<Key,Value> tabletsKeyValues,
java.lang.String clientAddress,
ZooLock lock)
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
getClientAddressString
public java.lang.String getClientAddressString()
config
public void config(java.lang.String[] args)
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
getStats
public TabletServerStatus getStats()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
minorCompactionFinished
public void minorCompactionFinished(Tablet.CommitSession tablet,
java.lang.String newDatafile,
int walogSeq)
throws java.io.IOException
- Throws:
java.io.IOException
minorCompactionStarted
public void minorCompactionStarted(Tablet.CommitSession tablet,
int lastUpdateSequence,
java.lang.String newMapfileLocation)
throws java.io.IOException
- Throws:
java.io.IOException
recover
public void recover(Tablet tablet,
java.util.List<MetadataTable.LogEntry> logEntries,
java.util.Set<java.lang.String> tabletFiles,
MutationReceiver mutationReceiver)
throws java.io.IOException
- Throws:
java.io.IOException
createLogId
public int createLogId(KeyExtent tablet)
getEntries
public long getEntries()
- Specified by:
getEntries
in interface TabletServerMBean
getEntriesInMemory
public long getEntriesInMemory()
- Specified by:
getEntriesInMemory
in interface TabletServerMBean
getIngest
public long getIngest()
- Specified by:
getIngest
in interface TabletServerMBean
getMajorCompactions
public int getMajorCompactions()
- Specified by:
getMajorCompactions
in interface TabletServerMBean
getMajorCompactionsQueued
public int getMajorCompactionsQueued()
- Specified by:
getMajorCompactionsQueued
in interface TabletServerMBean
getMinorCompactions
public int getMinorCompactions()
- Specified by:
getMinorCompactions
in interface TabletServerMBean
getMinorCompactionsQueued
public int getMinorCompactionsQueued()
- Specified by:
getMinorCompactionsQueued
in interface TabletServerMBean
getOnlineCount
public int getOnlineCount()
- Specified by:
getOnlineCount
in interface TabletServerMBean
getOpeningCount
public int getOpeningCount()
- Specified by:
getOpeningCount
in interface TabletServerMBean
getQueries
public long getQueries()
- Specified by:
getQueries
in interface TabletServerMBean
getUnopenedCount
public int getUnopenedCount()
- Specified by:
getUnopenedCount
in interface TabletServerMBean
getName
public java.lang.String getName()
- Specified by:
getName
in interface TabletServerMBean
getTotalMinorCompactions
public long getTotalMinorCompactions()
- Specified by:
getTotalMinorCompactions
in interface TabletServerMBean
getHoldTime
public double getHoldTime()
- Specified by:
getHoldTime
in interface TabletServerMBean
getAverageFilesPerTablet
public double getAverageFilesPerTablet()
- Specified by:
getAverageFilesPerTablet
in interface TabletServerMBean
getObjectName
protected javax.management.ObjectName getObjectName()
- Specified by:
getObjectName
in class AbstractMetricsImpl
getMetricsPrefix
protected java.lang.String getMetricsPrefix()
- Specified by:
getMetricsPrefix
in class AbstractMetricsImpl
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.