/** * deregisters for the events that are published for CheckTransitions. */ private synchronized void deregisterForCheckTranisitionEvents() { try { IdentifierList subIdentifiers = new IdentifierList(); subIdentifiers.add(new Identifier("AllCheckTransitions")); eventService.monitorEventDeregister(subIdentifiers); } catch (MALInteractionException ex) { Logger.getLogger(CheckLinkMonitorManager.class.getName()).log(Level.SEVERE, null, ex); } catch (MALException ex) { Logger.getLogger(CheckLinkMonitorManager.class.getName()).log(Level.SEVERE, null, ex); } }
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)));
/** * Quick method to stop listening for a heartbeat coming from the provider. * The registration to the service is handled by this class. For more * registrations, the developer is advised to use its own registration * mechanisms to the provider. * */ public void stopListening() { if (heartbeatSubscription != null) { try { IdentifierList ids = new IdentifierList(); ids.add(heartbeatSubscription.getSubscriptionId()); heartbeatService.beatDeregister(ids); } catch (MALInteractionException ex) { Logger.getLogger(HeartbeatConsumerServiceImpl.class.getName()).log(Level.SEVERE, null, ex); } catch (MALException ex) { Logger.getLogger(HeartbeatConsumerServiceImpl.class.getName()).log(Level.SEVERE, null, ex); } } }
subIdList.add(new Identifier("" + paramIdentityId)); parameterStub.monitorValueDeregister(subIdList);
/** * Converts a String based, dot delimited, domain identifier to an identifier list version. * * @param domain The delimited version of the domain name. * @return The list of identifiers to concatenate. */ public static IdentifierList stringToDomain(final String domain) { IdentifierList rv = null; if (null != domain) { final String[] parts = domain.split("\\."); rv = new IdentifierList(parts.length); for (int i = 0; i < parts.length; i++) { rv.add(new Identifier(parts[i])); } } return rv; }
/** * 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; }
/** * Closes the tmConsumer connection * */ @Override public void closeConnection() { // Close old connection if (tmConsumer != null) { try { final IdentifierList subLst = new IdentifierList(); for (Subscription sub : subs) { subLst.add(sub.getSubscriptionId()); } if (eventService != null) { try { eventService.monitorEventDeregister(subLst); } catch (MALInteractionException ex) { Logger.getLogger(EventConsumerServiceImpl.class.getName()).log(Level.SEVERE, null, ex); } } tmConsumer.close(); } catch (MALException ex) { Logger.getLogger(ConsumerServiceImpl.class.getName()).log(Level.SEVERE, null, ex); } } }
/** * 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); }
domain.add(new Identifier("*"));
names.add(new Identifier(name)); LongList identityIds = super.getArchiveService().store( //requirement: 3.5.7.a true,
names.add(name);
names.add(name);
names.add(name);
IdentifierList names = new IdentifierList(1); names.add(name);
for (String pack : availablePackages) { boolean isInstalled = backend.isPackageInstalled(pack); packages.add(new Identifier(pack)); installed.add(isInstalled); } else { boolean isInstalled = backend.isPackageInstalled(availablePackages.get(index)); packages.add(new Identifier(availablePackages.get(index))); installed.add(isInstalled);
final Identifier subscriptionId = new Identifier("SUB"); final IdentifierList subLst = new IdentifierList(); subLst.add(subscriptionId); if (parameterService != null) { parameterService.monitorValueDeregister(subLst);
names.add(getName(identityId));
details.get(0).setInstId(confId.getKey().getInstId()); IdentifierList providerNameList = new IdentifierList(1); providerNameList.add(provider.getProviderName());