/** * Generates the domain field in an IdentifierList from a String separated * by dots * * @param domainId The domain Id * @return The domain */ public static IdentifierList domainId2domain(String domainId) { if (domainId == null) { return new IdentifierList(); } IdentifierList output = new IdentifierList(); String[] parts = domainId.split("\\."); for (String part : parts) { output.add(new Identifier(part)); } return output; }
if (! domain.equals(other.domain))
DOMAIN.addAll(HelperMisc.domainId2domain(System.getProperty(HelperMisc.PROP_DOMAIN))); } else { DOMAIN.add(new Identifier(System.getProperty(HelperMisc.PROP_ORGANIZATION_NAME))); } else { DOMAIN.add(new Identifier("domainNotFoundInPropertiesFile")); DOMAIN.add(new Identifier(System.getProperty(HelperMisc.PROP_MISSION_NAME))); DOMAIN.add(new Identifier(System.getProperty(HelperMisc.PROP_MO_APP_NAME)));
@Override public IdentifierList getIdentifierList() throws MALException { return (IdentifierList) getBodyElement(0, new IdentifierList()); } }
if (!confSet0.getDomain().equals(ConfigurationProviderSingleton.getDomain()) || !confSet1.getDomain().equals(ConfigurationProviderSingleton.getDomain())) { return false; manager.reconfigureDefinitions(new LongList(), new IdentifierList(), new LongList(), new ActionDefinitionDetailsList()); // Reconfigures the Manager
try { availablePackages = backend.getListOfPackages(); final IdentifierList packages = new IdentifierList(); final BooleanList installed = new BooleanList(); for (String pack : availablePackages) { boolean isInstalled = backend.isPackageInstalled(pack); packages.add(new Identifier(pack)); installed.add(isInstalled); for (int j = 0; j < names.size(); j++) { int index = packageExistsInIndex(names.get(j).getValue(), availablePackages); } else { boolean isInstalled = backend.isPackageInstalled(availablePackages.get(index)); packages.add(new Identifier(availablePackages.get(index))); installed.add(isInstalled); outList.setBodyElement0(new IdentifierList()); outList.setBodyElement1(new BooleanList());
protected void internalHandleDeregister(final GENMessage msg, Session lqs) throws MALException, MALInteractionException { // get components parts of messsage IdentifierList subList = (IdentifierList) msg.getBody().getBodyElement(0, new IdentifierList()); final String strURL = msg.getHeader().getURITo().getValue(); final int iSecond = strURL.indexOf(JMSTransport.JMS_SERVICE_DELIM); final String providerExchangeName = strURL.substring(iSecond + 1); for (int i = 0; i < subList.size(); ++i) { String subscriptionKey = queueName + "::" + providerExchangeName + "::" + subList.get(i); if (consumeHandlerMap.containsKey(subscriptionKey)) { JMSConsumeHandler handler = consumeHandlerMap.get(subscriptionKey); consumeHandlerMap.remove(subscriptionKey); handler.deregister(true); } else { JMSTransport.RLOGGER.log(Level.WARNING, "JMS Error deregistering for unregistered subscription {0}", subscriptionKey); } } // create response and do callback GENMessage returnMsg = new GENMessage(false, createReturnHeader(msg, false), null, null, (Object[]) null); receiveMessage(returnMsg); }
IdentifierList list = (IdentifierList) new IdentifierList().decode(dec); header.setDomain(list);
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (domain != null ? domain.hashCode() : 0); hash = 83 * hash + (instId != null ? instId.hashCode() : 0); return hash; }
Long appInstId = appInstIds.get(i); Logger.getLogger(AppsLauncherProviderServiceImpl.class.getName()).log(Level.INFO, "Sending event to app: {0} (Name: ''{1}'')", new Object[]{appInstId, appDirectoryNames.get(i)}); this.setRunning(appInstId, false, interaction.getInteraction()); sourceList.add(super.getCOMServices().getActivityTrackingService().storeCOMOperationActivity(interaction.getInteraction(), null));
result |= (0x1 << 2); if (header.getDomain() != null && header.getDomain().size() > 0) { result |= (0x1 << 1);
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { domain = (org.ccsds.moims.mo.mal.structures.IdentifierList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.IdentifierList()); instId = decoder.decodeLong(); return this; }
if (!confSet0.getDomain().equals(ConfigurationProviderSingleton.getDomain()) || !confSet1.getDomain().equals(ConfigurationProviderSingleton.getDomain())) { return false; manager.reconfigureDefinitions(new LongList(), new IdentifierList(), new LongList(), new AlertDefinitionDetailsList()); // Reconfigures the Manager
@Override public int hashCode() { int hash = 7; hash = 53 * hash + (this.uri != null ? this.uri.hashCode() : 0); hash = 53 * hash + (this.domain != null ? this.domain.hashCode() : 0); hash = 53 * hash + (this.networkZone != null ? this.networkZone.hashCode() : 0); hash = 53 * hash + this.session; hash = 53 * hash + (this.sessionName != null ? this.sessionName.hashCode() : 0); return hash; }
if(argumentIds != null){ for (int index = 0; index < alertDef.getArguments().size(); index++) { if (!alertDef.getArguments().get(index).getArgId().getValue().equals(argumentIds.get(index).getValue())) { // If it doesn't match? return null;
/** * pauses all monitorings. The latest ParameterValue of each CheckLink will * be kept. * * @throws MALException * @throws MALInteractionException */ public void pauseAll() throws MALException, MALInteractionException { IdentifierList subIdList = new IdentifierList(); subIdList.add(new Identifier("*")); parameterStub.monitorValueDeregister(subIdList); }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { objType = (org.ccsds.moims.mo.com.structures.ObjectType) decoder.decodeElement(new org.ccsds.moims.mo.com.structures.ObjectType()); domain = (org.ccsds.moims.mo.mal.structures.IdentifierList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.IdentifierList()); objInstIds = (org.ccsds.moims.mo.mal.structures.LongList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.LongList()); return this; }