@Override protected GfxdConfigMessage<T> clone() { try { return new GfxdConfigMessage<T>(this); } catch (StandardException se) { throw GemFireXDRuntimeException.newRuntimeException(null, se); } }
@Override protected GfxdConfigMessage<T> clone() { try { return new GfxdConfigMessage<>(this); } catch (StandardException se) { throw GemFireXDRuntimeException.newRuntimeException(null, se); } }
@Override protected GfxdConfigMessage<T> clone() { try { return new GfxdConfigMessage<T>(this); } catch (StandardException se) { throw GemFireXDRuntimeException.newRuntimeException(null, se); } }
public boolean next() throws SQLException { if (this.memberResults == null) { try { final MemberSingleResultCollector rc = new MemberSingleResultCollector(); final DistributedMember myId = Misc.getDistributedSystem() .getDistributionManager().getDistributionManagerId(); /* [sb] restricting to self for fixing #43219 * final GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>> msg = new GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>>(rc, null, GfxdConfigMessage.Operation.GET_QUERYSTATS, null, false); */ final GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>> msg = new GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>>(rc, Collections.singleton(myId), GfxdConfigMessage .Operation.GET_QUERYSTATS, null, false); this.memberResults = msg.executeFunction().values().iterator(); } catch (SQLException ex) { throw ex; } catch (Throwable t) { throw Util.javaException(t); } } if (this.memberResults.hasNext()) { this.currentStats = this.memberResults.next(); this.wasNull = false; return true; } return false; }
public boolean next() throws SQLException { if (this.memberResults == null) { try { final MemberSingleResultCollector rc = new MemberSingleResultCollector(); final DistributedMember myId = Misc.getDistributedSystem() .getDistributionManager().getDistributionManagerId(); /* [sb] restricting to self for fixing #43219 * final GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>> msg = new GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>>(rc, null, GfxdConfigMessage.Operation.GET_QUERYSTATS, null, false); */ final GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>> msg = new GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>>(rc, Collections.singleton(myId), GfxdConfigMessage .Operation.GET_QUERYSTATS, null, false); this.memberResults = msg.executeFunction().values().iterator(); } catch (SQLException ex) { throw ex; } catch (Throwable t) { throw Util.javaException(t); } } if (this.memberResults.hasNext()) { this.currentStats = this.memberResults.next(); this.wasNull = false; return true; } return false; }
public boolean next() throws SQLException { if (this.memberResults == null) { try { final MemberSingleResultCollector rc = new MemberSingleResultCollector(); final DistributedMember myId = Misc.getDistributedSystem() .getDistributionManager().getDistributionManagerId(); /* [sb] restricting to self for fixing #43219 * final GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>> msg = new GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>>(rc, null, GfxdConfigMessage.Operation.GET_QUERYSTATS, null, false); */ final GfxdConfigMessage<TreeMap<String, HashMap<String, Object>>> msg = new GfxdConfigMessage<>(rc, Collections.singleton(myId), GfxdConfigMessage .Operation.GET_QUERYSTATS, null, false); this.memberResults = msg.executeFunction().values().iterator(); } catch (SQLException ex) { throw ex; } catch (Throwable t) { throw Util.javaException(t); } } if (this.memberResults.hasNext()) { this.currentStats = this.memberResults.next(); this.wasNull = false; return true; } return false; }
private Map<DistributedMember, Properties[]> getMemberPropsMap() throws SQLException { if (this.memberPropsMap == null) { try { final MemberSingleResultCollector<Properties[]> collector = new MemberSingleResultCollector<Properties[]>(); final DistributedMember myId = this.dm.getDistributionManagerId(); /* [sb] restricting to self for fixing #43219 final GfxdConfigMessage<TreeMap<DistributedMember, TreeMap<?, ?>[]>> msg = new GfxdConfigMessage<TreeMap<DistributedMember, TreeMap<?, ?>[]>>( collector, null, GfxdConfigMessage.Operation.GET_ALLPROPS, null, true); */ final GfxdConfigMessage<TreeMap<DistributedMember, Properties[]>> msg = new GfxdConfigMessage<TreeMap<DistributedMember, Properties[]>>( collector, Collections.singleton(myId), GfxdConfigMessage.Operation.GET_ALLPROPS, null, true); this.memberPropsMap = msg.executeFunction(); } catch (Throwable t) { throw Util.javaException(t); } } return this.memberPropsMap; }
private Map<DistributedMember, Properties[]> getMemberPropsMap() throws SQLException { if (this.memberPropsMap == null) { try { final MemberSingleResultCollector<Properties[]> collector = new MemberSingleResultCollector<>(); final DistributedMember myId = this.dm.getDistributionManagerId(); /* [sb] restricting to self for fixing #43219 final GfxdConfigMessage<TreeMap<DistributedMember, TreeMap<?, ?>[]>> msg = new GfxdConfigMessage<TreeMap<DistributedMember, TreeMap<?, ?>[]>>( collector, null, GfxdConfigMessage.Operation.GET_ALLPROPS, null, true); */ final GfxdConfigMessage<TreeMap<DistributedMember, Properties[]>> msg = new GfxdConfigMessage<>( collector, Collections.singleton(myId), GfxdConfigMessage.Operation.GET_ALLPROPS, null, true); this.memberPropsMap = msg.executeFunction(); } catch (Throwable t) { throw Util.javaException(t); } } return this.memberPropsMap; }
private Map<DistributedMember, Properties[]> getMemberPropsMap() throws SQLException { if (this.memberPropsMap == null) { try { final MemberSingleResultCollector<Properties[]> collector = new MemberSingleResultCollector<Properties[]>(); final DistributedMember myId = this.dm.getDistributionManagerId(); /* [sb] restricting to self for fixing #43219 final GfxdConfigMessage<TreeMap<DistributedMember, TreeMap<?, ?>[]>> msg = new GfxdConfigMessage<TreeMap<DistributedMember, TreeMap<?, ?>[]>>( collector, null, GfxdConfigMessage.Operation.GET_ALLPROPS, null, true); */ final GfxdConfigMessage<TreeMap<DistributedMember, Properties[]>> msg = new GfxdConfigMessage<TreeMap<DistributedMember, Properties[]>>( collector, Collections.singleton(myId), GfxdConfigMessage.Operation.GET_ALLPROPS, null, true); this.memberPropsMap = msg.executeFunction(); } catch (Throwable t) { throw Util.javaException(t); } } return this.memberPropsMap; }
public static void sendBucketInfoDumpMsg(Set<DistributedMember> targetMembers, boolean dumpBackingMap) { try { GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( new GfxdListResultCollector(), targetMembers, GfxdConfigMessage.Operation.DUMP_BUCKETS, dumpBackingMap ? Boolean.TRUE : Boolean.FALSE, false); // disable HA msg.setHA(false); // don't need the results msg.executeFunction(); } catch (Exception ex) { throw GemFireXDRuntimeException.newRuntimeException( "GfxdDumpLocalResultMessage: unexpected exception", ex); } } }
public static void sendBucketInfoDumpMsg(Set<DistributedMember> targetMembers, boolean dumpBackingMap) { try { GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( new GfxdListResultCollector(), targetMembers, GfxdConfigMessage.Operation.DUMP_BUCKETS, dumpBackingMap ? Boolean.TRUE : Boolean.FALSE, false); // disable HA msg.setHA(false); // don't need the results msg.executeFunction(); } catch (Exception ex) { throw GemFireXDRuntimeException.newRuntimeException( "GfxdDumpLocalResultMessage: unexpected exception", ex); } } }
public static void sendBucketInfoDumpMsg(Set<DistributedMember> targetMembers, boolean dumpBackingMap) { try { GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( new GfxdListResultCollector(), targetMembers, GfxdConfigMessage.Operation.DUMP_BUCKETS, dumpBackingMap ? Boolean.TRUE : Boolean.FALSE, false); // disable HA msg.setHA(false); // don't need the results msg.executeFunction(); } catch (Exception ex) { throw GemFireXDRuntimeException.newRuntimeException( "GfxdDumpLocalResultMessage: unexpected exception", ex); } } }
excludedServers = SharedUtils.toCSV(excludedServerSet); final GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( rc, Collections.singleton(locators.next()), GfxdConfigMessage.Operation.GET_PREFERREDSERVER, new Object[] {
excludedServers = SharedUtils.toCSV(excludedServerSet); final GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( rc, Collections.singleton(locators.next()), GfxdConfigMessage.Operation.GET_PREFERREDSERVER, new Object[] {
excludedServers = SharedUtils.toCSV(excludedServerSet); final GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( rc, Collections.singleton(locators.next()), GfxdConfigMessage.Operation.GET_PREFERREDSERVER, new Object[] {
/** * Enable or disable collection of various query statistics. * * @param enable * true to enable collection of query statistics and false to disable */ public static void setQueryStats(Boolean enable) throws StandardException,SQLException { // NULL enable is illegal if (enable == null) { throw StandardException.newException(SQLState.ENTITY_NAME_MISSING); } try { GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( new GfxdListResultCollector(), null, GfxdConfigMessage.Operation.ENABLE_QUERYSTATS, enable, false); // don't need the result msg.executeFunction(); } catch (SQLException ex) { throw ex; } catch (Throwable t) { throw Util.javaException(t); } }
/** * Enable or disable collection of various query statistics. * * @param enable * true to enable collection of query statistics and false to disable */ public static void setQueryStats(Boolean enable) throws StandardException,SQLException { // NULL enable is illegal if (enable == null) { throw StandardException.newException(SQLState.ENTITY_NAME_MISSING); } try { GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( new GfxdListResultCollector(), null, GfxdConfigMessage.Operation.ENABLE_QUERYSTATS, enable, false); // don't need the result msg.executeFunction(); } catch (SQLException ex) { throw ex; } catch (Throwable t) { throw Util.javaException(t); } }
/** * Enable or disable collection of various query statistics. * * @param enable * true to enable collection of query statistics and false to disable */ public static void setQueryStats(Boolean enable) throws StandardException,SQLException { // NULL enable is illegal if (enable == null) { throw StandardException.newException(SQLState.ENTITY_NAME_MISSING); } try { GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>( new GfxdListResultCollector(), null, GfxdConfigMessage.Operation.ENABLE_QUERYSTATS, enable, false); // don't need the result msg.executeFunction(); } catch (SQLException ex) { throw ex; } catch (Throwable t) { throw Util.javaException(t); } }
final GfxdListResultCollector collector = new GfxdListResultCollector(); final GfxdConfigMessage<Object> msg = new GfxdConfigMessage<>(collector, Collections.singleton(this.currentMember), op, newVal, false);
final GfxdListResultCollector collector = new GfxdListResultCollector(); final GfxdConfigMessage<Object> msg = new GfxdConfigMessage<Object>(collector, Collections.<DistributedMember> singleton(this.currentMember), op, newVal, false);