public String getEndpointId() { return this.commandEvent.getEndpointIdentifier().toString(); } }
public String getEndpointId() { return this.commandEvent.getEndpointIdentifier().toString(); } }
public String getEndpointId() { return this.commandEvent.getEndpointIdentifier().toString(); }
protected void log(final LinkStateChanged.State state) { final StringBuilder buffer = new StringBuilder(); // Start printing on a new line. buffer.append("\n"); // Log the message. switch (state) { case CLOSED: { buffer.append("Closed a link"); } case OPEN: { buffer.append("Opened a link"); } } if (primaryConnId != null && primaryEndpointId != null && secondaryConnId != null && secondaryEndpointId != null) { buffer.append(" with primary connection ID of ").append(primaryConnId.toString()); buffer.append(" secondary connection ID of ").append(secondaryConnId.toString()); buffer.append(" A primary endpoint ID of ").append(primaryEndpointId.toString()); buffer.append(" and a secondary endpoint ID of ").append(secondaryEndpointId.toString()); } logger.debug(buffer.toString()); } }
protected void log(final ConnectionStateChanged.State state) { final StringBuilder buffer = new StringBuilder(); // Start printing on a new line. buffer.append("\n"); // Log the message. switch (state) { case CLOSED: { buffer.append("Closed a connection"); } case HALF_OPEN: { buffer.append("Opened a connection halfway"); } case OPEN: { buffer.append("Opened a connection"); } } if (connId != null && endpointId != null) { buffer.append(" with ID ").append(connId.toString()).append(" "); buffer.append("to an endpoint with ID ").append(endpointId.toString()); } if(logger.isDebugEnabled()) { logger.debug(buffer.toString()); } } }
protected void log(final ConnectionStateChanged.State state) { final StringBuilder buffer = new StringBuilder(); // Start printing on a new line. buffer.append("\n"); // Log the message. switch (state) { case CLOSED: { buffer.append("Closed a connection"); } case HALF_OPEN: { buffer.append("Opened a connection halfway"); } case OPEN: { buffer.append("Opened a connection"); } } if (connId != null && endpointId != null) { buffer.append(" with ID ").append(connId.toString()).append(" "); buffer.append("to an endpoint with ID ").append(endpointId.toString()); } if(logger.isDebugEnabled()) { logger.debug(buffer.toString()); } } }
private MgcpEndpointActivity getEndpointActivity(String ePartialID) { for (ActivityContextInterface aci : getSbbContext().getActivities()) { if (aci.getActivity() instanceof MgcpEndpointActivity) { MgcpEndpointActivity activity = (MgcpEndpointActivity) aci .getActivity(); if (activity.getEndpointIdentifier().toString().toLowerCase().contains(ePartialID.toLowerCase())) { return activity; } } } return null; }
protected void onReceiveTimeout(ReceiveTimeout message, ActorRef self, ActorRef sender) { logger.error("Timeout received on Endpoint " + this.id.toString()); broadcast(new EndpointStateChanged(EndpointState.FAILED)); }
protected void onJainMgcpResponseEvent(JainMgcpResponseEvent message, ActorRef self, ActorRef sender) { if (this.destroying.get()) { ReturnCode returnCode = message.getReturnCode(); if (ReturnCode.TRANSACTION_EXECUTED_NORMALLY == returnCode.getValue()) { broadcast(new EndpointStateChanged(EndpointState.DESTROYED)); } else { logger.error("Could not destroy endpoint " + this.id.toString() + ". Return Code: " + returnCode.toString()); broadcast(new EndpointStateChanged(EndpointState.FAILED)); } } }
if (specificEndpointId != null && this.endpointId.compareTo(specificEndpointId.toString()) == 0) { this.endpointId = specificEndpointId.toString(); EndpointHandler concurrent = this.stack.switchMapping(this.fakeId, specificEndpointId.toString()); if (concurrent != null) { return; case SuccessResponse: if (this.endpointId.equals(nRequest.getEndpointIdentifier().toString())) { } else if (isWildCardEndpointName(nRequest.getEndpointIdentifier().toString())) { return; case SuccessResponse: if (this.endpointId.equals(mcRequest.getEndpointIdentifier().toString())) { return; case SuccessResponse: if (this.endpointId.equals(dcRequest.getEndpointIdentifier().toString())) {
isWildcarded=EndpointHandler.isAnyOfWildcard(crcx.getEndpointIdentifier().toString()); break;