@Test public void testReserveGlobalPool() { assertThat(srTeHandler.reserveGlobalPool(GLOBAL_LABEL_SPACE_MIN, GLOBAL_LABEL_SPACE_MAX), is(true)); }
public boolean reserveGlobalPool(long beginLabel, long endLabel) { checkNotNull(labelRsrcAdminService, LABEL_RESOURCE_ADMIN_SERVICE_NULL); return labelRsrcAdminService.createGlobalPool(LabelResourceId.labelResourceId(beginLabel), LabelResourceId.labelResourceId(endLabel)); }
PceccSrTeBeHandler { public boolean reserveGlobalPool(long beginLabel, long endLabel) { checkNotNull(labelRsrcAdminService, LABEL_RESOURCE_ADMIN_SERVICE_NULL); return labelRsrcAdminService.createGlobalPool(LabelResourceId.labelResourceId(beginLabel), LabelResourceId.labelResourceId(endLabel)); } }
PceccSrTeBeHandler { public boolean reserveGlobalPool(long beginLabel, long endLabel) { checkNotNull(labelRsrcAdminService, LABEL_RESOURCE_ADMIN_SERVICE_NULL); return labelRsrcAdminService.createGlobalPool(LabelResourceId.labelResourceId(beginLabel), LabelResourceId.labelResourceId(endLabel)); } private  PceccSrTeBeHandler(); }
PceccSrTeBeHandler { public boolean reserveGlobalPool(long beginLabel, long endLabel) { checkNotNull(labelRsrcAdminService, LABEL_RESOURCE_ADMIN_SERVICE_NULL); return labelRsrcAdminService.createGlobalPool(LabelResourceId.labelResourceId(beginLabel), LabelResourceId.labelResourceId(endLabel)); } private  PceccSrTeBeHandler(); static PceccSrTeBeHandler getInstance(); void initialize(LabelResourceAdminService labelRsrcAdminService, LabelResourceService labelRsrcService,
                           FlowObjectiveService flowObjectiveService, ApplicationId appId, PceStore pceStore,
                           DeviceService deviceService); boolean reserveGlobalPool(long beginLabel, long endLabel); String getLsrId(DeviceId deviceId); boolean allocateNodeLabel(DeviceId specificDeviceId, String specificLsrId); boolean releaseNodeLabel(DeviceId specificDeviceId, String specificLsrId); boolean allocateAdjacencyLabel(Link link); boolean releaseAdjacencyLabel(Link link); LabelStack computeLabelStack(Path path); void advertiseNodeLabelRule(DeviceId deviceId, LabelResourceId labelId, IpPrefix ipPrefix,
                                       Objective.Operation type, boolean bBos); void installAdjLabelRule(DeviceId deviceId, LabelResourceId labelId, PortNumber srcPortNum,
                                    PortNumber dstPortNum, Objective.Operation type); }
PceccSrTeBeHandler { public boolean reserveGlobalPool(long beginLabel, long endLabel) { checkNotNull(labelRsrcAdminService, LABEL_RESOURCE_ADMIN_SERVICE_NULL); return labelRsrcAdminService.createGlobalPool(LabelResourceId.labelResourceId(beginLabel), LabelResourceId.labelResourceId(endLabel)); } private  PceccSrTeBeHandler(); static PceccSrTeBeHandler getInstance(); void initialize(LabelResourceAdminService labelRsrcAdminService, LabelResourceService labelRsrcService,
                           FlowObjectiveService flowObjectiveService, ApplicationId appId, PceStore pceStore,
                           DeviceService deviceService); boolean reserveGlobalPool(long beginLabel, long endLabel); String getLsrId(DeviceId deviceId); boolean allocateNodeLabel(DeviceId specificDeviceId, String specificLsrId); boolean releaseNodeLabel(DeviceId specificDeviceId, String specificLsrId); boolean allocateAdjacencyLabel(Link link); boolean releaseAdjacencyLabel(Link link); LabelStack computeLabelStack(Path path); void advertiseNodeLabelRule(DeviceId deviceId, LabelResourceId labelId, IpPrefix ipPrefix,
                                       Objective.Operation type, boolean bBos); void installAdjLabelRule(DeviceId deviceId, LabelResourceId labelId, PortNumber srcPortNum,
                                    PortNumber dstPortNum, Objective.Operation type);  }