/** * Checks if is requested service up. * * @return true if service requested by application is up, false if not. */ public boolean isRequestedServiceUp() { return service.checkHasState() && (!service.state().checkHasAcceptingRequests() || service.state().acceptingRequests() == 1) && service.state().serviceState() == 1; }
public boolean isRequestedTunnelStreamServiceUp(ChannelInfo chnlInfo) { return chnlInfo.hasTunnelStreamServiceInfo && chnlInfo.tsServiceInfo.checkHasState() && (!chnlInfo.tsServiceInfo.state().checkHasAcceptingRequests() || chnlInfo.tsServiceInfo.state().acceptingRequests() == 1) && chnlInfo.tsServiceInfo.state().serviceState() == 1; }
/** * Checks if is requested service up. * * @return true if service requested by application is up, false if not. */ public boolean isRequestedServiceUp() { return service.checkHasState() && service.state().checkHasAcceptingRequests() && service.state().acceptingRequests() == 1 && service.state().serviceState() == 1; }
public boolean isRequestedServiceUp(ChannelInfo chnlInfo) { return chnlInfo.hasServiceInfo && chnlInfo.serviceInfo.checkHasState() && (!chnlInfo.serviceInfo.state().checkHasAcceptingRequests() || chnlInfo.serviceInfo.state().acceptingRequests() == 1) && chnlInfo.serviceInfo.state().serviceState() == 1; }
public boolean isRequestedServiceUp(ChannelInfo chnlInfo) { return chnlInfo.hasServiceInfo && chnlInfo.serviceInfo.checkHasState() && (!chnlInfo.serviceInfo.state().checkHasAcceptingRequests() || chnlInfo.serviceInfo.state().acceptingRequests() == 1) && chnlInfo.serviceInfo.state().serviceState() == 1; }
public boolean isRequestedTunnelStreamServiceUp(ChannelInfo chnlInfo) { return chnlInfo.hasTunnelStreamServiceInfo && chnlInfo.tsServiceInfo.checkHasState() && (!chnlInfo.tsServiceInfo.state().checkHasAcceptingRequests() || chnlInfo.tsServiceInfo.state().acceptingRequests() == 1) && chnlInfo.tsServiceInfo.state().serviceState() == 1; }
/** * Checks if the service is up. The service will be up once the refresh is * sent. * * @return true if the service is up. */ public boolean isServiceUp() { if (service.checkHasState() && service.state().checkHasAcceptingRequests() && service.state().serviceState() == 1 && service.state().acceptingRequests() == 1) return true; return false; }
boolean isServiceUpAndAcceptingRequests(Service service) { return (_watchlist.reactorChannel().state() == ReactorChannel.State.UP || _watchlist.reactorChannel().state() == ReactorChannel.State.READY ) && service.checkHasState() && (!service.state().checkHasAcceptingRequests() || service.state().acceptingRequests() == 1) && service.state().serviceState() == 1; }
service.state().action(FilterEntryActions.SET); service.state().serviceState(element.intLongValue()); service.state().applyHasAcceptingRequests(); service.state().acceptingRequests(element.intLongValue()); service.state().applyHasStatus(); service.state().status().streamState(element.intValue()); service.state().applyHasStatus(); service.state().status().dataState(element.intValue()); service.state().applyHasStatus(); service.state().status().code(element.intValue()); service.state().applyHasStatus(); service.state().status().text().data(element.asciiValue());
service.serviceId(OmmNiProviderActiveConfig.DEFAULT_SERVICE_ID); service.state().applyHasAcceptingRequests(); service.state().acceptingRequests(OmmNiProviderActiveConfig.DEFAULT_ACCEPTING_REQUESTS); service.serviceId(OmmIProviderActiveConfig.DEFAULT_SERVICE_ID); service.state().applyHasAcceptingRequests(); service.state().acceptingRequests(OmmIProviderActiveConfig.DEFAULT_ACCEPTING_REQUESTS); service.state().action(FilterEntryActions.SET); service.state().serviceState(OmmNiProviderActiveConfig.DEFAULT_SERVICE_STATE);
ret = state().update(destService.state()); if (ret != CodecReturnCodes.SUCCESS) return ret;
ret = state().copy(destService.state()); if (ret != CodecReturnCodes.SUCCESS) return ret;
private void buildRDMService(Service rdmService, int flags, int serviceAddOrDeleteAction, int filterAddOrClearAction) { rdmService.clear(); rdmService.action(serviceAddOrDeleteAction); rdmService.flags(flags); // checking only set action for the filters // other filter unit tests cover other filter actions if (rdmService.checkHasInfo()) buildRDMServiceInfo(rdmService.info(), filterAddOrClearAction); if (rdmService.checkHasLink()) buildRDMServiceLink(rdmService.link(), filterAddOrClearAction); if (rdmService.checkHasState()) buildRDMServiceState(rdmService.state(), filterAddOrClearAction); if (rdmService.checkHasLoad()) buildRDMServiceLoad(rdmService.load(), filterAddOrClearAction); if (rdmService.checkHasData()) buildRDMServiceData(rdmService.data(), filterAddOrClearAction); buildRDMServiceGroup(rdmService.groupStateList(), filterAddOrClearAction); }