@Override public URI getURI() { return new URI(localURI); }
/** * Creates a tmConsumer connection for a specified subsystem * * @param subsystem Name of the subsystem * @param service Definition of the consumed service * @return Wrapped MALconsumer * @throws org.ccsds.moims.mo.mal.MALException * @throws java.net.MalformedURLException */ public Object createConsumer(String subsystem, MALService service) throws MALException, MalformedURLException { Logger.getLogger(ConsumerServiceImpl.class.getName()).log(Level.INFO, "URI" + this.connectionDetails.getProviderURI().toString() + "@" + subsystem); MALConsumer consumer = connection.startService( new URI(this.connectionDetails.getProviderURI().toString() + "@" + subsystem), this.connectionDetails.getBrokerURI(), this.connectionDetails.getDomain(), service); Object stub = generateServiceStub(consumer); servicesMap.put(new Identifier(subsystem), stub); return stub; }
if (centralDirectoryURI != null && centralDirectoryURI.getValue().startsWith("malspp")) { Logger.getLogger(NanoSatMOConnectorImpl.class.getName()).log(Level.INFO, "The Central Directory service URI read is selecting 'malspp' as transport. The URI will be discarded." Logger.getLogger(NanoSatMOConnectorImpl.class.getName()).log(Level.INFO, "Attempting to connect to Central Directory service at: {0}", centralDirectoryURI.toString()); if (centralDirectory != null) { Logger.getLogger(NanoSatMOConnectorImpl.class.getName()).log(Level.INFO, "Populating Central Directory service on URI: {0}", centralDirectoryURI.getValue()); + " seconds!"); final String uri = directoryService.getConnection().getPrimaryConnectionDetails().getProviderURI().toString(); Logger.getLogger(NanoSatMOConnectorImpl.class.getName()).log(Level.INFO, "URI: {0}\n", uri);
private static StringList getAvailableTransports(AddressDetailsList addresses) { StringList transports = new StringList(); // List of transport names for (AddressDetails address : addresses) { // The name of the transport is always before ":" String[] parts = address.getServiceURI().toString().split(":"); transports.add(parts[0]); } return transports; }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (success != null ? success.hashCode() : 0); hash = 83 * hash + (estimateDuration != null ? estimateDuration.hashCode() : 0); hash = 83 * hash + (nextDestination != null ? nextDestination.hashCode() : 0); return hash; }
if (! nextDestination.equals(other.nextDestination))
/** * Create a message header with all header properties set. The serviceFrom * and serviceTo parameters will be explicitly set in the header, so that * they include only the routing part of their respective urls. The routing * part is the part of an URL that comes after the service delimiter: * maltcp://host:port/routingpart */ @Override public GENMessageHeader createMessageHeader(final URI uriFrom, Blob authenticationId, final URI uriTo, final Time timestamp, final QoSLevel qosLevel, final UInteger priority, final IdentifierList domain, final Identifier networkZone, final SessionType session, final Identifier sessionName, final InteractionType interactionType, final UOctet interactionStage, final Long transactionId, final UShort serviceArea, final UShort service, final UShort operation, final UOctet serviceVersion, final Boolean isErrorMessage, final Map qosProperties) { String serviceFrom = transport.getRoutingPart(uriFrom.toString()); String serviceTo = transport.getRoutingPart(uriTo.toString()); return new TCPIPMessageHeader(uriFrom, serviceFrom, authenticationId, uriTo, serviceTo, timestamp, qosLevel, priority, domain, networkZone, session, sessionName, interactionType, interactionStage, transactionId, serviceArea, service, operation, serviceVersion, isErrorMessage); }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (supportedLevels != null ? supportedLevels.hashCode() : 0); hash = 83 * hash + (QoSproperties != null ? QoSproperties.hashCode() : 0); hash = 83 * hash + (priorityLevels != null ? priorityLevels.hashCode() : 0); hash = 83 * hash + (serviceURI != null ? serviceURI.hashCode() : 0); hash = 83 * hash + (brokerURI != null ? brokerURI.hashCode() : 0); hash = 83 * hash + (brokerProviderObjInstId != null ? brokerProviderObjInstId.hashCode() : 0); return hash; }
@Override public MALEndpoint getEndpoint(final URI uri) throws IllegalArgumentException { String endpointUriPart = getRoutingPart(uri.getValue()); return endpointRoutingMap.get(endpointUriPart); }
public void setBrokerURI(String brokerURI) { this.brokerURI = new URI(brokerURI); }
String[] nodes = uriTo.toString().split("@"); uriNextDestination = new URI(uriTo.toString().substring(nodes[0].length() + 1)); getActivityTrackingService().publishReceptionEvent(new URI(nodes[0]), interaction.getMessageHeader().getNetworkZone(), true, null, uriNextDestination, sourceRec); getActivityTrackingService().publishForwardEvent(new URI(nodes[0]), interaction.getMessageHeader().getNetworkZone(), (errorNumber == null), null, uriNextDestination, sourceFor);
+ (((float) (System.currentTimeMillis() - super.startTime)) / 1000) + " seconds!"); final String uri = directoryService.getConnection().getConnectionDetails().getProviderURI().toString(); Logger.getLogger(NanoSatMOMonolithic.class.getName()).log(Level.INFO, "URI: {0}\n", uri);
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (instId != null ? instId.hashCode() : 0); hash = 83 * hash + (details != null ? details.hashCode() : 0); hash = 83 * hash + (network != null ? network.hashCode() : 0); hash = 83 * hash + (timestamp != null ? timestamp.hashCode() : 0); hash = 83 * hash + (provider != null ? provider.hashCode() : 0); return hash; }
if (! provider.equals(other.provider))
/** * Check to see if a supplied URI would use the supplied Transport. * * @param dstUri The Uri. * @param transport The Transport to check. * @return Returns true if dstUri would create the same transport. */ public static boolean isSameTransport(final URI dstUri, final MALTransport transport) { init(); if ((null != dstUri) && (null != dstUri.getValue())) { return isSameTransport(dstUri.getValue(), transport); } return false; }
public void setProviderURI(String providerURI) { this.providerURI = new URI(providerURI); }
this.directoryService.loadURIs(NMFProvider.NANOSAT_MO_SUPERVISOR_NAME); final String primaryURI = this.directoryService.getConnection().getPrimaryConnectionDetails().getProviderURI().toString(); final String secondaryURI = (det != null) ? det.getProviderURI().toString() : null; this.writeCentralDirectoryServiceURI(primaryURI, secondaryURI); Logger.getLogger(NanoSatMOSupervisor.class.getName()).log(Level.INFO,