org.apache.accumulo.server.master
Class Master
java.lang.Object
org.apache.accumulo.server.master.Master
- All Implemented Interfaces:
- LiveTServerSet.Listener, CurrentState, TableObserver
public class Master
- extends java.lang.Object
- implements LiveTServerSet.Listener, TableObserver, CurrentState
The Master is responsible for assigning and balancing tablets and loggers to tablet servers.
The master will also coordinate log recoveries and reports general status.
Constructor Summary |
Master(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Master
public Master(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
createInstanceFromPropertyName
public static <T> T createInstanceFromPropertyName(Property property,
java.lang.Class<T> base,
T defaultInstance)
run
public void run()
throws java.io.IOException,
java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
- Throws:
java.io.IOException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
newLogger
public void newLogger(java.lang.String address)
update
public void update(LiveTServerSet current,
java.util.Set<TServerInstance> deleted,
java.util.Set<TServerInstance> added)
- Specified by:
update
in interface LiveTServerSet.Listener
stateChanged
public void stateChanged(java.lang.String tableId,
TableState state)
- Specified by:
stateChanged
in interface TableObserver
initialize
public void initialize(java.util.Map<java.lang.String,TableState> tableIdToStateMap)
- Specified by:
initialize
in interface TableObserver
sessionExpired
public void sessionExpired()
- Specified by:
sessionExpired
in interface TableObserver
onlineTables
public java.util.Set<java.lang.String> onlineTables()
- Specified by:
onlineTables
in interface CurrentState
onlineTabletServers
public java.util.Set<TServerInstance> onlineTabletServers()
- Specified by:
onlineTabletServers
in interface CurrentState
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.