@SuppressWarnings("unused") @ManagedOperation(description = "Removes links with the given name and containerId pattern from the link registry.", changesConfiguredObjectState = false) void purgeLinkRegistry(@Param(name = "containerIdPattern", description = "Regular Expression to match the remote container id.", defaultValue = ".*") String containerIdPattern, @Param(name = "role", description = "whether to remove only sending links (\"SENDER\"), receiving links (\"RECEIVER\") or both (\"BOTH\")", validValues = {"SENDER", "RECEIVER", "BOTH"}, defaultValue = "BOTH") String role, @Param(name = "linkNamePattern", description = "Regular Expression to match the link names to be removed.", defaultValue = ".*") String linkNamePattern);
private static OwnAttributeResolver getOwnAttributeResolver(final ConfiguredObject<?> object) { return object instanceof AbstractConfiguredObject ? ((AbstractConfiguredObject)object).getOwnAttributeResolver() : new OwnAttributeResolver(object); }
@StateTransition(currentState = { State.UNINITIALIZED, State.STOPPED }, desiredState = State.ACTIVE) protected ListenableFuture<Void> activate() { return doAfter(makeActive(), new Runnable() { @Override public void run() { AbstractSystemConfig.super.setState(State.ACTIVE); } }); }
public NameDependency(final Class<X> clazz, final String attributeName, final String attrValue) { super(clazz, attributeName); _name = attrValue; }
private void checkReferencesOnDelete(final ConfiguredObject<?> referrer, final ConfiguredObject<?> referee) { if (!managesChildren(referee)) { getModel().getChildTypes(referee.getCategoryClass()) .forEach(childClass -> referee.getChildren(childClass) .forEach(child -> checkReferencesOnDelete(referrer, child))); } checkReferences(referrer, referee); }
@ManagedObjectFactoryConstructor(conditionallyAvailable = true, condition = "org.apache.qpid.server.JECheck#isAvailable()") public BDBHAVirtualHostImpl(final Map<String, Object> attributes, VirtualHostNode<?> virtualHostNode) { super(attributes, virtualHostNode); _configurationStore = (BDBConfigurationStore) virtualHostNode.getConfigurationStore(); }
private boolean managesChildren(final ConfiguredObject<?> object) { return managesChildren(object.getCategoryClass()) || managesChildren(object.getTypeClass()); }
private ConfiguredObjectTypeRegistry getTypeRegistry() { return getModel().getTypeRegistry(); }
/** * Determines whether a message would be isBound to a particular queue using a specific routing key and arguments * @param bindingKey * @param arguments * @param queue * @return */ @DoOnConfigThread boolean isBound(@Param(name = "bindingKey") String bindingKey, @Param(name = "arguments") Map<String, Object> arguments, @Param(name = "queue") Queue<?> queue);
@ManagedOperation(description = "move messages from this queue to another", changesConfiguredObjectState = false) List<Long> moveMessages(@Param(name = "destination", description = "The queue to which the messages should be moved", mandatory = true) Queue<?> destination, @Param(name = "messageIds", description = "If provided, only messages in the queue whose (internal) message-id is supplied will be considered for moving") List<Long> messageIds, @Param(name = "selector", description = "A (JMS) selector - if provided, only messages which match the selector will be considered for moving") String selector, @Param(name = "limit", description = "Maximum number of messages to move", defaultValue = "-1") int limit);
/** * Determines whether a message is routing to any queue using a specific _routing key * @param bindingKey * @return */ @DoOnConfigThread boolean isBound(@Param(name = "bindingKey") String bindingKey);
@ManagedOperation(description = "get information about the message with the given Id", nonModifying = true, paramRequiringSecure = "includeHeaders", changesConfiguredObjectState = false) MessageInfo getMessageInfoById(@Param(name = "messageId") long messageId, @Param(name = "includeHeaders", defaultValue = "true") boolean includeHeaders);
@ManagedOperation(nonModifying = true, description = "Extract a Java KeyStore containing the certificate for the autogenerated key." + " The KeyStore can be used as a trust store by JMS client connecting to the broker", changesConfiguredObjectState = false) Content getClientTrustStore(@Param(name="password", defaultValue = "", description = "The password to use to secure the keystore (by default the empty string is used).") String password);
@ManagedOperation(description = "Remove given certificates from the Trust Store.", changesConfiguredObjectState = true) void removeCertificates(@Param(name = "certificates", description = "List of certificate details to be removed. The details should take the form given by the certificateDetails attribute", mandatory = true) List<CertificateDetails> certificates); }
@ManagedOperation(nonModifying = true, description = "Collects thread stack traces for the threads with names containing matching characters for given regular expression", changesConfiguredObjectState = false) Content findThreadStackTraces(@Param(name="threadNameFindExpression", description = "Regular expression to find threads with names containing matching characters") String threadNameFindExpression);
@ManagedOperation(nonModifying = true, description = "Extract configuration", paramRequiringSecure = "includeSecureAttributes", changesConfiguredObjectState = false) Map<String,Object> extractConfig(@Param(name="includeSecureAttributes", description = "include attributes that may contain passwords or other " + "confidential information", defaultValue = "false") boolean includeSecureAttributes); @ManagedOperation(nonModifying = true,
@ManagedOperation(nonModifying = true, secure = true, changesConfiguredObjectState = false, description = "Gets the message content") Content getMessageContent(@Param(name = "messageId") long messageId, @Param(name = "limit", defaultValue = "-1", description = "Number of bytes to return") long limit, @Param(name = "returnJson", defaultValue = "false", description = "If true, converts message content into JSON format. " + "If false, returned bytes may be in an encoded form") boolean returnJson, @Param(name = "decompressBeforeLimiting", defaultValue = "false", description = "If true, the operation will attempt to decompress the message" + "(should it be compressed) before applying any limit. If" + "decompression fails the operation will fail.") boolean decompressBeforeLimiting);
@ManagedOperation(description = "Set context variable with given name to given value." + " Previous value is returned or null if not set directly on configured object.", changesConfiguredObjectState = true, skipAclCheck = true) String setContextVariable(@Param(name = "name", description = "Context variable name") String name, @Param(name = "value", description = "Context variable value") String value);
@ManagedOperation(description = "Import message store content", secure = true, changesConfiguredObjectState = false) void importMessageStore(@Param(name="source", description = "Extract file", mandatory = true)String source);
@ManagedOperation(description = "removes messages from this queue", changesConfiguredObjectState = false) List<Long> deleteMessages(@Param(name = "messageIds", description = "If provided, only messages in the queue whose (internal) message-id is supplied will be considered for deletion") List<Long> messageIds, @Param(name = "selector", description = "A (JMS) selector - if provided, only messages which match the selector will be considered for deletion") String selector, @Param(name = "limit", description = "Maximum number of messages to delete", defaultValue = "-1") int limit);