sun.management.snmp.jvmmib.EnumJvmMemoryGCCall Java Examples
The following examples show how to use
sun.management.snmp.jvmmib.EnumJvmMemoryGCCall.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JvmMemoryImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #2
Source File: JvmMemoryImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #3
Source File: JvmMemoryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #4
Source File: JvmMemoryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #5
Source File: JvmMemoryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #6
Source File: JvmMemoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #7
Source File: JvmMemoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #8
Source File: JvmMemoryImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #9
Source File: JvmMemoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #10
Source File: JvmMemoryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #11
Source File: JvmMemoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #12
Source File: JvmMemoryImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Setter for the "JvmMemoryGCCall" variable. */ public void setJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() == JvmMemoryGCCallStart.intValue()) { final Map<Object, Object> m = JvmContextFactory.getUserData(); try { ManagementFactory.getMemoryMXBean().gc(); if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallStarted); } catch (Exception ex) { if (m != null) m.put("jvmMemory.getJvmMemoryGCCall", JvmMemoryGCCallFailed); } return; } throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #13
Source File: JvmMemoryImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #14
Source File: JvmMemoryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #15
Source File: JvmMemoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #16
Source File: JvmMemoryImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #17
Source File: JvmMemoryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #18
Source File: JvmMemoryImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #19
Source File: JvmMemoryImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #20
Source File: JvmMemoryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #21
Source File: JvmMemoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #22
Source File: JvmMemoryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #23
Source File: JvmMemoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #24
Source File: JvmMemoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Getter for the "JvmMemoryGCCall" variable. */ public EnumJvmMemoryGCCall getJvmMemoryGCCall() throws SnmpStatusException { final Map<Object,Object> m = JvmContextFactory.getUserData(); if (m != null) { final EnumJvmMemoryGCCall cached = (EnumJvmMemoryGCCall) m.get("jvmMemory.getJvmMemoryGCCall"); if (cached != null) return cached; } return JvmMemoryGCCallSupported; }
Example #25
Source File: JvmMemoryImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
/** * Checker for the "JvmMemoryGCCall" variable. */ public void checkJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() != JvmMemoryGCCallStart.intValue()) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #26
Source File: JvmMemoryImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
/** * Checker for the "JvmMemoryGCCall" variable. */ public void checkJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() != JvmMemoryGCCallStart.intValue()) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #27
Source File: JvmMemoryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
/** * Checker for the "JvmMemoryGCCall" variable. */ public void checkJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() != JvmMemoryGCCallStart.intValue()) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #28
Source File: JvmMemoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * Checker for the "JvmMemoryGCCall" variable. */ public void checkJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() != JvmMemoryGCCallStart.intValue()) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #29
Source File: JvmMemoryImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
/** * Checker for the "JvmMemoryGCCall" variable. */ public void checkJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() != JvmMemoryGCCallStart.intValue()) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }
Example #30
Source File: JvmMemoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * Checker for the "JvmMemoryGCCall" variable. */ public void checkJvmMemoryGCCall(EnumJvmMemoryGCCall x) throws SnmpStatusException { if (x.intValue() != JvmMemoryGCCallStart.intValue()) throw new SnmpStatusException(SnmpDefinitions.snmpRspWrongValue); }