/** * Gets the version of GemFire currently running. * * @return a String representation of GemFire's version. */ public String version() { return GemFireVersion.getGemFireVersion(); }
/** * Returns the version of the cache implementation. * * @return the version of the cache implementation as a {@code String} */ public static String getVersion() { return GemFireVersion.getGemFireVersion(); }
/** * Returns the version of the cache implementation. * * @return the version of the cache implementation as a <code>String</code> */ public static String getVersion() { return GemFireVersion.getGemFireVersion(); }
public String getReleaseVersion() { return GemFireVersion.getGemFireVersion(); } }
public static String getGemFireJarFileName() { return "geode-core-" + GemFireVersion.getGemFireVersion() + ".jar"; }
static String getGemFireJarPath() { String classpath = getSystemClasspath(); String gemfireJarPath = GEODE_JAR_PATHNAME; for (String classpathElement : classpath.split(File.pathSeparator)) { if (classpathElement.endsWith("geode-core-" + GemFireVersion.getGemFireVersion() + ".jar")) { gemfireJarPath = classpathElement; break; } } return gemfireJarPath; } }
public String getVersion(boolean full) { if (full) { return GemFireVersion.asString(); } else { return GemFireVersion.getGemFireVersion(); } }
public LocatorStatusResponse initialize(final int locatorPort, final String locatorHost, final String locatorLogFile, final String locatorName) { final RuntimeMXBean runtimeBean = ManagementFactory.getRuntimeMXBean(); this.pid = identifyPid(); this.jvmArgs = ArgumentRedactor.redactEachInList(runtimeBean.getInputArguments()); this.uptime = runtimeBean.getUptime(); this.classpath = runtimeBean.getClassPath(); this.gemfireVersion = GemFireVersion.getGemFireVersion(); this.javaVersion = System.getProperty("java.version"); this.workingDirectory = System.getProperty("user.dir"); this.logFile = locatorLogFile; this.host = locatorHost; this.port = locatorPort; this.name = locatorName; return this; }
/** * Default Constructor * * @param agent Admin Agent instance * @throws OperationsException if ObjectName can't be formed for this MBean */ MemberInfoWithStatsMBean(Agent agent) throws OperationsException, MBeanRegistrationException, AdminException { this.agent = agent; this.objectName = ObjectName.getInstance(MBEAN_NAME); this.version = GemFireVersion.getGemFireVersion(); this.refreshInterval = -1; this.id = NOT_AVAILABLE_STR; this.forwarder = new NotificationForwarder(agent.getMBeanServer()); }
@Override public String getProductDescription() { return "GemFire " + GemFireVersion.getGemFireVersion() + " #" + GemFireVersion.getBuildId() + " as of " + GemFireVersion.getSourceDate(); }
CommandResponse(String sender, String contentType, int status, String page, String tokenAccessor, String debugInfo, String header, GfJsonObject content, String footer, boolean failedToPersist, Path fileToDownload) { this.sender = sender; this.contentType = contentType; this.status = status; this.page = page; this.tokenAccessor = tokenAccessor; this.debugInfo = debugInfo; this.data = new LegacyData(header, content, footer); this.when = DateFormat.getInstance().format(new java.util.Date()); this.version = GemFireVersion.getGemFireVersion(); this.failedToPersist = failedToPersist; if (fileToDownload != null) { this.fileToDownload = fileToDownload.toString(); } else { this.fileToDownload = null; } this.isLegacy = true; }
public LocatorState(final LocatorLauncher launcher, final Status status) { // if status is NOT_RESPONDING then this is executing inside the JVM asking for the status; // pid etc will be set according to the caller's JVM instead this(status, launcher.statusMessage, System.currentTimeMillis(), launcher.getId(), identifyPid(), ManagementFactory.getRuntimeMXBean().getUptime(), launcher.getWorkingDirectory(), ManagementFactory.getRuntimeMXBean().getInputArguments(), System.getProperty("java.class.path"), GemFireVersion.getGemFireVersion(), System.getProperty("java.version"), getLogFileCanonicalPath(launcher), launcher.getBindAddressAsString(), launcher.getPortAsString(), launcher.getMemberName()); }
public ServerState(final ServerLauncher launcher, final Status status) { this(status, launcher.statusMessage, System.currentTimeMillis(), launcher.getId(), identifyPid(), ManagementFactory.getRuntimeMXBean().getUptime(), launcher.getWorkingDirectory(), ManagementFactory.getRuntimeMXBean().getInputArguments(), System.getProperty("java.class.path"), GemFireVersion.getGemFireVersion(), System.getProperty("java.version"), getServerLogFileCanonicalPath(launcher), getServerBindAddressAsString(launcher), getServerPortAsString(launcher), launcher.getMemberName()); }
public LocatorState(final LocatorLauncher launcher, final Status status, final String errorMessage) { this(status, // status errorMessage, // statusMessage System.currentTimeMillis(), // timestamp getLocatorLocation(launcher), // locatorLocation null, // pid 0L, // uptime launcher.getWorkingDirectory(), // workingDirectory ManagementFactory.getRuntimeMXBean().getInputArguments(), // jvmArguments null, // classpath GemFireVersion.getGemFireVersion(), // gemfireVersion System.getProperty("java.version"), // javaVersion null, // logFile launcher.getBindAddressAsString(), // host launcher.getPortAsString(), // port null);// memberName }
public ServerState(final ServerLauncher launcher, final Status status, final String errorMessage) { this(status, // status errorMessage, // statusMessage System.currentTimeMillis(), // timestamp getServerLocation(launcher), // serverLocation null, // pid 0L, // uptime launcher.getWorkingDirectory(), // workingDirectory ManagementFactory.getRuntimeMXBean().getInputArguments(), // jvmArguments null, // classpath GemFireVersion.getGemFireVersion(), // gemfireVersion System.getProperty("java.version"), // javaVersion null, // logFile getServerBindAddressAsString(launcher), // host launcher.getServerPortAsString(), // port null);// memberName }
StringBuilder usageBuilder = new StringBuilder(); stream.print("Pivotal GemFire(R) v"); stream.print(GemFireVersion.getGemFireVersion()); stream.println(" Command Line Shell" + GfshParser.LINE_SEPARATOR); stream.println("USAGE");
StartupResponseWithVersionMessage(ClusterDistributionManager dm, int processorId, InternalDistributedMember recipient, String rejectionMessage, boolean responderIsAdmin) { super(dm, processorId, recipient, rejectionMessage, responderIsAdmin); version = GemFireVersion.getGemFireVersion(); this.hostedLocators = InternalLocator.getLocatorStrings(); InternalLocator locator = InternalLocator.getLocator(); if (locator != null) { this.isSharedConfigurationEnabled = locator.isSharedConfigurationEnabled(); } }
AgentUtil agentUtil = new AgentUtil(GemFireVersion.getGemFireVersion());
@Before public void setUp() throws Exception { serviceName = "Test"; pid = ProcessUtils.identifyPid(); uptime = 123456789; name = AbstractLauncherServiceStateTest.class.getSimpleName(); workingDirectory = new File(System.getProperty("user.dir")).getAbsolutePath(); jvmArguments = ManagementFactory.getRuntimeMXBean().getInputArguments(); classpath = ManagementFactory.getRuntimeMXBean().getClassPath(); gemfireVersion = GemFireVersion.getGemFireVersion(); javaVersion = System.getProperty("java.version"); int port = 12345; InetAddress host = InetAddress.getLocalHost(); launcher = new TestLauncher(host, port, name); launcher.setStatus(STARTING); }
|| dm.getId().getVmKind() == ClusterDistributionManager.LOCATOR_DM_TYPE; String myVersion = GemFireVersion.getGemFireVersion(); String theirVersion = this.version; if (dm.getTransport().isMcastEnabled() != isMcastEnabled) {