You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ds...@apache.org on 2018/12/12 22:51:57 UTC
[geode] branch feature/GEODE-6102 created (now ff5f8d0)
This is an automated email from the ASF dual-hosted git repository.
dschneider pushed a change to branch feature/GEODE-6102
in repository https://gitbox.apache.org/repos/asf/geode.git.
at ff5f8d0 add @CliAvailabilityIndicator
This branch includes the following new commits:
new ff5f8d0 add @CliAvailabilityIndicator
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[geode] 01/01: add @CliAvailabilityIndicator
Posted by ds...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dschneider pushed a commit to branch feature/GEODE-6102
in repository https://gitbox.apache.org/repos/asf/geode.git
commit ff5f8d0b0d2d11cfbe9643bf67074650b9200391
Author: Darrel Schneider <ds...@pivotal.io>
AuthorDate: Wed Dec 12 14:50:57 2018 -0800
add @CliAvailabilityIndicator
---
.../connectors/jdbc/internal/cli/DestroyDataSourceCommand.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/cli/DestroyDataSourceCommand.java b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/cli/DestroyDataSourceCommand.java
index fcd1ec4..3d1a2ec 100644
--- a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/cli/DestroyDataSourceCommand.java
+++ b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/cli/DestroyDataSourceCommand.java
@@ -17,6 +17,7 @@ package org.apache.geode.connectors.jdbc.internal.cli;
import java.util.List;
import java.util.Set;
+import org.springframework.shell.core.annotation.CliAvailabilityIndicator;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
@@ -123,4 +124,9 @@ public class DestroyDataSourceCommand extends SingleGfshCommand {
CacheElement.removeElement(config.getJndiBindings(), (String) element);
return true;
}
+
+ @CliAvailabilityIndicator({DESTROY_DATA_SOURCE})
+ public boolean commandAvailable() {
+ return isOnlineCommandAvailable();
+ }
}