public void raConfigure(ConfigProperties properties) { port_ = DEFAULT_TFTP_PORT; if (properties.getProperty(PORT_CONFIG_PROPERTY) != null) port_ = (Integer) properties.getProperty(PORT_CONFIG_PROPERTY).getValue(); mode_ = ServerMode.GET_AND_PUT; }
private static int getEventFlags() { int eventFlags = EventFlags.REQUEST_EVENT_UNREFERENCED_CALLBACK; eventFlags = EventFlags.setRequestProcessingFailedCallback(eventFlags); eventFlags = EventFlags.setRequestProcessingSuccessfulCallback(eventFlags); return eventFlags; } private static final int DEFAULT_ACTIVITY_FLAGS = ActivityFlags.setRequestSleeActivityGCCallback(ActivityFlags.REQUEST_ENDED_CALLBACK);
/** * {@inheritDoc} */ @Override public void endActivity(DiameterActivityHandle arg0) { sleeEndpoint.endActivity(arg0); }
public void raConfigure(ConfigProperties properties) { try { if (tracer.isInfoEnabled()) { tracer.info("Configuring CAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue(); } catch (Exception e) { tracer.severe("Configuring of CAP RA failed ", e); } }
public void raVerifyConfiguration(ConfigProperties configProperties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring ISUPA: " + this.raContext.getEntityName()); } this.isupJndi = (String) configProperties.getProperty(CONF_ISUP_JNDI).getValue(); if (this.isupJndi == null) { throw new InvalidConfigurationException("ISUP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } }
public void handleActivityCreatedBySbb(TCKActivityID activityID) throws TCKTestErrorException, RemoteException { try { sleeEndpoint.activityStarted(new TCKActivityHandle(activityID)); } catch (ActivityAlreadyExistsException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (CouldNotStartActivityException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
public void raConfigure(ConfigProperties properties) { try { if (tracer.isInfoEnabled()) { tracer.info("Configuring TCAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.tcapJndi = (String) properties.getProperty(CONF_TCAP_JNDI).getValue(); } catch (Exception e) { tracer.severe("Configuring of MAP RA failed ", e); } }
public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring CAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue(); if (this.capJndi == null) { throw new InvalidConfigurationException("CAP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } }
public void raConfigure(ConfigProperties properties) { port_ = DEFAULT_TFTP_PORT; if (properties.getProperty(PORT_CONFIG_PROPERTY) != null) port_ = (Integer) properties.getProperty(PORT_CONFIG_PROPERTY).getValue(); mode_ = ServerMode.GET_AND_PUT; }
/** * Static method for constructing an event flags object for this RA. * @return the generated event flags. */ private static int getEventFlags() { int eventFlags = EventFlags.REQUEST_EVENT_UNREFERENCED_CALLBACK; eventFlags = EventFlags.setRequestProcessingFailedCallback(eventFlags); eventFlags = EventFlags.setRequestProcessingSuccessfulCallback(eventFlags); return eventFlags; }
/** * {@inheritDoc} */ @Override public void endActivity(DiameterActivityHandle handle) { sleeEndpoint.endActivity(handle); }
public void raConfigure(ConfigProperties properties) { try { if (tracer.isInfoEnabled()) { tracer.info("Configuring CAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue(); } catch (Exception e) { tracer.severe("Configuring of CAP RA failed ", e); } }
public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring CAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue(); if (this.capJndi == null) { throw new InvalidConfigurationException("CAP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } }
/** * {@inheritDoc} */ @Override public void raConfigure(ConfigProperties properties) { parseApplicationIds((String) properties.getProperty(AUTH_APPLICATION_IDS).getValue()); }
private static int getEventFlags() { int eventFlags = EventFlags.REQUEST_EVENT_UNREFERENCED_CALLBACK; eventFlags = EventFlags.setRequestProcessingFailedCallback(eventFlags); eventFlags = EventFlags.setRequestProcessingSuccessfulCallback(eventFlags); return eventFlags; }
/** * {@inheritDoc} */ @Override public void endActivity(DiameterActivityHandle handle) { sleeEndpoint.endActivity(handle); }
public void raConfigure(ConfigProperties properties) { try { if (tracer.isInfoEnabled()) { tracer.info("Configuring MAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.mapJndi = (String) properties.getProperty(CONF_MAP_JNDI).getValue(); } catch (Exception e) { tracer.severe("Configuring of MAP RA failed ", e); } }
private static int getEventFlags() { int eventFlags = EventFlags.REQUEST_EVENT_UNREFERENCED_CALLBACK; eventFlags = EventFlags.setRequestProcessingFailedCallback(eventFlags); eventFlags = EventFlags.setRequestProcessingSuccessfulCallback(eventFlags); return eventFlags; }
/** * {@inheritDoc} */ @Override public void endActivity(final DiameterActivityHandle arg0) { this.sleeEndpoint.endActivity(arg0); }
private static int getEventFlags() { int eventFlags = EventFlags.REQUEST_EVENT_UNREFERENCED_CALLBACK; eventFlags = EventFlags.setRequestProcessingFailedCallback(eventFlags); eventFlags = EventFlags.setRequestProcessingSuccessfulCallback(eventFlags); return eventFlags; }