SYMBOL INDEX (198 symbols across 34 files) FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/IDGen.java type IDGen (line 5) | public interface IDGen { method get (line 6) | Result get(String key); method init (line 7) | boolean init(); FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/common/CheckVO.java class CheckVO (line 3) | public class CheckVO { method CheckVO (line 7) | public CheckVO(long timestamp, int workID) { method getTimestamp (line 12) | public long getTimestamp() { method setTimestamp (line 16) | public void setTimestamp(long timestamp) { method getWorkID (line 20) | public int getWorkID() { method setWorkID (line 24) | public void setWorkID(int workID) { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/common/PropertyFactory.java class PropertyFactory (line 9) | public class PropertyFactory { method getProperties (line 19) | public static Properties getProperties() { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/common/Result.java class Result (line 3) | public class Result { method Result (line 7) | public Result() { method Result (line 10) | public Result(long id, Status status) { method getId (line 15) | public long getId() { method setId (line 19) | public void setId(long id) { method getStatus (line 23) | public Status getStatus() { method setStatus (line 27) | public void setStatus(Status status) { method toString (line 31) | @Override FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/common/Status.java type Status (line 3) | public enum Status { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/common/Utils.java class Utils (line 14) | public class Utils { method getIp (line 17) | public static String getIp() { method getIp (line 30) | public static String getIp(String interfaceName) { method getHostAddress (line 49) | private static List getHostAddress(String interfaceName) throw... FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/common/ZeroIDGen.java class ZeroIDGen (line 5) | public class ZeroIDGen implements IDGen { method get (line 6) | @Override method init (line 11) | @Override FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/SegmentIDGenImpl.java class SegmentIDGenImpl (line 17) | public class SegmentIDGenImpl implements IDGen { class UpdateThreadFactory (line 45) | public static class UpdateThreadFactory implements ThreadFactory { method nextThreadNum (line 49) | private static synchronized int nextThreadNum() { method newThread (line 53) | @Override method init (line 59) | @Override method updateCacheFromDbAtEveryMinute (line 69) | private void updateCacheFromDbAtEveryMinute() { method updateCacheFromDb (line 87) | private void updateCacheFromDb() { method get (line 133) | @Override method updateSegmentFromDb (line 158) | public void updateSegmentFromDb(String key, Segment segment) { method getIdFromSegmentBuffer (line 202) | public Result getIdFromSegmentBuffer(final SegmentBuffer buffer) { method waitAndSleep (line 260) | private void waitAndSleep(SegmentBuffer buffer) { method getAllLeafAllocs (line 276) | public List getAllLeafAllocs() { method getCache (line 280) | public Map getCache() { method getDao (line 284) | public IDAllocDao getDao() { method setDao (line 288) | public void setDao(IDAllocDao dao) { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/dao/IDAllocDao.java type IDAllocDao (line 7) | public interface IDAllocDao { method getAllLeafAllocs (line 8) | List getAllLeafAllocs(); method updateMaxIdAndGetLeafAlloc (line 9) | LeafAlloc updateMaxIdAndGetLeafAlloc(String tag); method updateMaxIdByCustomStepAndGetLeafAlloc (line 10) | LeafAlloc updateMaxIdByCustomStepAndGetLeafAlloc(LeafAlloc leafAlloc); method getAllTags (line 11) | List getAllTags(); FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/dao/IDAllocMapper.java type IDAllocMapper (line 8) | public interface IDAllocMapper { method getAllLeafAllocs (line 10) | @Select("SELECT biz_tag, max_id, step, update_time FROM leaf_alloc") method getLeafAlloc (line 19) | @Select("SELECT biz_tag, max_id, step FROM leaf_alloc WHERE biz_tag = ... method updateMaxId (line 27) | @Update("UPDATE leaf_alloc SET max_id = max_id + step WHERE biz_tag = ... method updateMaxIdByCustomStep (line 30) | @Update("UPDATE leaf_alloc SET max_id = max_id + #{step} WHERE biz_tag... method getAllTags (line 33) | @Select("SELECT biz_tag FROM leaf_alloc") FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/dao/impl/IDAllocDaoImpl.java class IDAllocDaoImpl (line 17) | public class IDAllocDaoImpl implements IDAllocDao { method IDAllocDaoImpl (line 21) | public IDAllocDaoImpl(DataSource dataSource) { method getAllLeafAllocs (line 29) | @Override method updateMaxIdAndGetLeafAlloc (line 39) | @Override method updateMaxIdByCustomStepAndGetLeafAlloc (line 52) | @Override method getAllTags (line 65) | @Override FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/model/LeafAlloc.java class LeafAlloc (line 3) | public class LeafAlloc { method getKey (line 9) | public String getKey() { method setKey (line 13) | public void setKey(String key) { method getMaxId (line 17) | public long getMaxId() { method setMaxId (line 21) | public void setMaxId(long maxId) { method getStep (line 25) | public int getStep() { method setStep (line 29) | public void setStep(int step) { method getUpdateTime (line 33) | public String getUpdateTime() { method setUpdateTime (line 37) | public void setUpdateTime(String updateTime) { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/model/Segment.java class Segment (line 5) | public class Segment { method Segment (line 11) | public Segment(SegmentBuffer buffer) { method getValue (line 15) | public AtomicLong getValue() { method setValue (line 19) | public void setValue(AtomicLong value) { method getMax (line 23) | public long getMax() { method setMax (line 27) | public void setMax(long max) { method getStep (line 31) | public int getStep() { method setStep (line 35) | public void setStep(int step) { method getBuffer (line 39) | public SegmentBuffer getBuffer() { method getIdle (line 43) | public long getIdle() { method toString (line 47) | @Override FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/segment/model/SegmentBuffer.java class SegmentBuffer (line 12) | public class SegmentBuffer { method SegmentBuffer (line 25) | public SegmentBuffer() { method getKey (line 34) | public String getKey() { method setKey (line 38) | public void setKey(String key) { method getSegments (line 42) | public Segment[] getSegments() { method getCurrent (line 46) | public Segment getCurrent() { method getCurrentPos (line 50) | public int getCurrentPos() { method nextPos (line 54) | public int nextPos() { method switchPos (line 58) | public void switchPos() { method isInitOk (line 62) | public boolean isInitOk() { method setInitOk (line 66) | public void setInitOk(boolean initOk) { method isNextReady (line 70) | public boolean isNextReady() { method setNextReady (line 74) | public void setNextReady(boolean nextReady) { method getThreadRunning (line 78) | public AtomicBoolean getThreadRunning() { method rLock (line 82) | public Lock rLock() { method wLock (line 86) | public Lock wLock() { method getStep (line 90) | public int getStep() { method setStep (line 94) | public void setStep(int step) { method getMinStep (line 98) | public int getMinStep() { method setMinStep (line 102) | public void setMinStep(int minStep) { method getUpdateTimestamp (line 106) | public long getUpdateTimestamp() { method setUpdateTimestamp (line 110) | public void setUpdateTimestamp(long updateTimestamp) { method toString (line 114) | @Override FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/SnowflakeIDGenImpl.java class SnowflakeIDGenImpl (line 13) | public class SnowflakeIDGenImpl implements IDGen { method init (line 15) | @Override method SnowflakeIDGenImpl (line 34) | public SnowflakeIDGenImpl(String zkAddress, int port) { method SnowflakeIDGenImpl (line 44) | public SnowflakeIDGenImpl(String zkAddress, int port, long twepoch) { method get (line 60) | @Override method tilNextMillis (line 97) | protected long tilNextMillis(long lastTimestamp) { method timeGen (line 105) | protected long timeGen() { method getWorkerId (line 109) | public long getWorkerId() { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/SnowflakeZookeeperHolder.java class SnowflakeZookeeperHolder (line 29) | public class SnowflakeZookeeperHolder { method SnowflakeZookeeperHolder (line 42) | public SnowflakeZookeeperHolder(String ip, String port, String connect... method init (line 49) | public boolean init() { method doService (line 110) | private void doService(CuratorFramework curator) { method ScheduledUploadData (line 114) | private void ScheduledUploadData(final CuratorFramework curator, final... method checkInitTimeStamp (line 131) | private boolean checkInitTimeStamp(CuratorFramework curator, String zk... method createNode (line 145) | private String createNode(CuratorFramework curator) throws Exception { method updateNewData (line 154) | private void updateNewData(CuratorFramework curator, String path) { method buildData (line 171) | private String buildData() throws JsonProcessingException { method deBuildData (line 178) | private Endpoint deBuildData(String json) throws IOException { method updateLocalWorkerID (line 189) | private void updateLocalWorkerID(int workerID) { method createWithOptions (line 219) | private CuratorFramework createWithOptions(String connectionString, Re... class Endpoint (line 230) | static class Endpoint { method Endpoint (line 235) | public Endpoint() { method Endpoint (line 238) | public Endpoint(String ip, String port, long timestamp) { method getIp (line 244) | public String getIp() { method setIp (line 248) | public void setIp(String ip) { method getPort (line 252) | public String getPort() { method setPort (line 256) | public void setPort(String port) { method getTimestamp (line 260) | public long getTimestamp() { method setTimestamp (line 264) | public void setTimestamp(long timestamp) { method getZk_AddressNode (line 269) | public String getZk_AddressNode() { method setZk_AddressNode (line 273) | public void setZk_AddressNode(String zk_AddressNode) { method getListenAddress (line 277) | public String getListenAddress() { method setListenAddress (line 281) | public void setListenAddress(String listenAddress) { method getWorkerID (line 285) | public int getWorkerID() { method setWorkerID (line 289) | public void setWorkerID(int workerID) { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/exception/CheckLastTimeException.java class CheckLastTimeException (line 3) | public class CheckLastTimeException extends RuntimeException { method CheckLastTimeException (line 4) | public CheckLastTimeException(String msg){ FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/exception/CheckOtherNodeException.java class CheckOtherNodeException (line 3) | public class CheckOtherNodeException extends RuntimeException { method CheckOtherNodeException (line 4) | public CheckOtherNodeException(String message) { FILE: leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/exception/ClockGoBackException.java class ClockGoBackException (line 3) | public class ClockGoBackException extends RuntimeException { method ClockGoBackException (line 4) | public ClockGoBackException(String message) { FILE: leaf-core/src/test/java/com/sankuai/inf/leaf/segment/IDGenServiceTest.java class IDGenServiceTest (line 17) | public class IDGenServiceTest { method before (line 20) | @Before method testGetId (line 40) | @Test method after (line 47) | @After FILE: leaf-core/src/test/java/com/sankuai/inf/leaf/segment/SpringIDGenServiceTest.java class SpringIDGenServiceTest (line 11) | @RunWith(SpringJUnit4ClassRunner.class) method testGetId (line 17) | @Test FILE: leaf-core/src/test/java/com/sankuai/inf/leaf/snowflake/SnowflakeIDGenImplTest.java class SnowflakeIDGenImplTest (line 10) | public class SnowflakeIDGenImplTest { method testGetId (line 11) | @Test FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/Constants.java class Constants (line 3) | public class Constants { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/LeafServerApplication.java class LeafServerApplication (line 6) | @SpringBootApplication method main (line 9) | public static void main(String[] args) { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/controller/LeafController.java class LeafController (line 16) | @RestController method getSegmentId (line 25) | @RequestMapping(value = "/api/segment/get/{key}") method getSnowflakeId (line 30) | @RequestMapping(value = "/api/snowflake/get/{key}") method get (line 35) | private String get(@PathVariable("key") String key, Result id) { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/controller/LeafMonitorController.java class LeafMonitorController (line 24) | @Controller method getCache (line 31) | @RequestMapping(value = "cache") method getDb (line 62) | @RequestMapping(value = "db") method decodeSnowflakeId (line 82) | @RequestMapping(value = "decodeSnowflakeId") FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/exception/InitException.java class InitException (line 3) | public class InitException extends Exception{ method InitException (line 4) | public InitException(String msg) { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/exception/LeafServerException.java class LeafServerException (line 6) | @ResponseStatus(code=HttpStatus.INTERNAL_SERVER_ERROR) method LeafServerException (line 8) | public LeafServerException(String msg) { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/exception/NoKeyException.java class NoKeyException (line 6) | @ResponseStatus(code=HttpStatus.INTERNAL_SERVER_ERROR,reason="Key is none") FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/model/SegmentBufferView.java class SegmentBufferView (line 3) | public class SegmentBufferView { method getKey (line 16) | public String getKey() { method setKey (line 20) | public void setKey(String key) { method getValue1 (line 24) | public long getValue1() { method setValue1 (line 28) | public void setValue1(long value1) { method getStep1 (line 32) | public int getStep1() { method setStep1 (line 36) | public void setStep1(int step1) { method getMax1 (line 40) | public long getMax1() { method setMax1 (line 44) | public void setMax1(long max1) { method getValue0 (line 48) | public long getValue0() { method setValue0 (line 52) | public void setValue0(long value0) { method getStep0 (line 56) | public int getStep0() { method setStep0 (line 60) | public void setStep0(int step0) { method getMax0 (line 64) | public long getMax0() { method setMax0 (line 68) | public void setMax0(long max0) { method getPos (line 72) | public int getPos() { method setPos (line 76) | public void setPos(int pos) { method isNextReady (line 80) | public boolean isNextReady() { method setNextReady (line 84) | public void setNextReady(boolean nextReady) { method isInitOk (line 88) | public boolean isInitOk() { method setInitOk (line 92) | public void setInitOk(boolean initOk) { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/service/SegmentService.java class SegmentService (line 20) | @Service("SegmentService") method SegmentService (line 27) | public SegmentService() throws SQLException, InitException { method getId (line 55) | public Result getId(String key) { method getIdGen (line 59) | public SegmentIDGenImpl getIdGen() { FILE: leaf-server/src/main/java/com/sankuai/inf/leaf/server/service/SnowflakeService.java class SnowflakeService (line 16) | @Service("SnowflakeService") method SnowflakeService (line 22) | public SnowflakeService() throws InitException { method getId (line 40) | public Result getId(String key) { FILE: leaf-server/src/test/java/com/sankuai/inf/leaf/server/LeafServerApplicationTests.java class LeafServerApplicationTests (line 8) | @RunWith(SpringRunner.class) method contextLoads (line 12) | @Test FILE: scripts/leaf_alloc.sql type `leaf_alloc` (line 3) | CREATE TABLE `leaf_alloc` (