/** * This method returns the call trace service. * * @return The call trace service */ public CallTraceService getCallTraceService() { CallTraceService ret = null; synchronized (_singletons) { if (!_singletons.isEmpty()) { RESTCallTraceServer server = (RESTCallTraceServer) _singletons.iterator().next(); ret = server.getCallTraceService(); } } return (ret); }
/** * This method sets the call trace service. * * @param cts The call trace service */ public void setCallTraceService(CallTraceService cts) { synchronized (_singletons) { RESTCallTraceServer server = null; if (!_singletons.isEmpty()) { server = (RESTCallTraceServer) _singletons.iterator().next(); } else { server = new RESTCallTraceServer(); _singletons.add(server); } server.setCallTraceService(cts); } }