public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), "managementRegionStats"); } };
public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), "managementRegionStats"); } };
public void initialize(GemFireCacheImpl cache) { this.connStats = new ConnectionStats( cache.getDistributedSystem(), "ConnectionStats"); } // GemStone changes END.
public void initialize(GemFireCacheImpl cache) { this.connStats = new ConnectionStats( cache.getDistributedSystem(), "ConnectionStats"); } // GemStone changes END.
/** * Returns the current membership Set for this member. * @param cache * @return membership Set. */ public static Set getMembershipSet(GemFireCacheImpl cache) { return cache.getDistributedSystem().getDistributionManager() .getDistributionManagerIds(); }
public PeerTypeRegistration(GemFireCacheImpl cache) { this.cache = cache; int distributedSystemId = cache.getDistributedSystem().getDistributionManager().getDistributedSystemId(); if(distributedSystemId == -1) { distributedSystemId = 0; } this.nextTypeId = distributedSystemId << 24; this.maxTypeId = distributedSystemId << 24 | 0xFFFFFF; this.nextEnumId = distributedSystemId << 24; this.maxEnumId = distributedSystemId << 24 | 0xFFFFFF; }
/** * Check to see if the current member is a loner and we can't tell * if the user wants a peer or a client type registry. * @param cache * @return true if this member is a loner and we can't determine what * type of registry they want. */ public static boolean isIndeterminateLoner(GemFireCacheImpl cache) { boolean isLoner = cache.getDistributedSystem().isLoner(); boolean pdxConfigured = cache.getPdxPersistent(); return isLoner && !pdxConfigured/* && !hasGateways*/; }
public Object call() { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); return cache.getDistributedSystem().getDistributedMember(); } };
public void run() { // GatewayBatchOp.VERSION_WITH_OLD_WAN = false; distributedSystemID = -1; CCRegion.getCache().getDistributedSystem().disconnect(); } };
/** * Returns the current membership Set for this member. * @param cache * @return membership Set. */ public static Set getMembershipSet(GemFireCacheImpl cache) { return cache.getDistributedSystem().getDistributionManager() .getDistributionManagerIds(); }
private void init() { execution = FunctionService.onMembers(region.getCache().getDistributedSystem()); int totalNumBuckets = region.getPartitionAttributes().getTotalNumBuckets(); routingKeySet = new CopyOnWriteArraySet(); for (int i = 0; i < totalNumBuckets; i++) { routingKeySet.add(i); } }
public GfxdDistributedSystemBridge(SystemManagementService systemManagementService,ConnectionWrapperHolder connectionWrapHolder, InternalDistributedMember thisMember) { this.connectionWrapperHolder = connectionWrapHolder; this.service = systemManagementService; this.thisMember = thisMember; String memberNameOrId = MBeanJMXAdapter.getMemberNameOrId(Misc.getGemFireCache().getDistributedSystem().getDistributedMember()); this.thisMemberName = ManagementUtils.getMemberMBeanName(memberNameOrId,ManagementUtils.DEFAULT_SERVER_GROUP); this.gfxdMemberClusterStatsMonitor = new GfxdMemberClusterStatsMonitor(); this.aggregateTableMBeanBridgeMap = new HashMap<ObjectName, AggregateTableMBeanBridge>(); this.mbeanCounterMap = Collections.synchronizedMap(new HashMap<ObjectName, Long >()); }
public int getProcedureCallsCompleted() { GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (cache != null) { if (distributedProcedureCallFunctionStats == null) { InternalDistributedSystem ds = cache.getDistributedSystem(); distributedProcedureCallFunctionStats = FunctionStats.getFunctionStats( DistributedProcedureCallFunction.FUNCTIONID, ds); } return distributedProcedureCallFunctionStats.getFunctionExecutionsCompleted(); } return ManagementConstants.ZERO; }
public Object call() throws Exception{ GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); return cache.getDistributedSystem().getDistributedMember().getId(); } };
public int getProcedureCallsCompleted() { GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (cache != null) { if (distributedProcedureCallFunctionStats == null) { InternalDistributedSystem ds = cache.getDistributedSystem(); distributedProcedureCallFunctionStats = FunctionStats.getFunctionStats( DistributedProcedureCallFunction.FUNCTIONID, ds); } return distributedProcedureCallFunctionStats.getFunctionExecutionsCompleted(); } return ManagementConstants.ZERO; }
public String member() { return isLocal ? "" : "<member>" + escapeForXML(Misc.getGemFireCache().getDistributedSystem() .getDistributedMember().getId()) + "</member>"; }
AbstractDBSynchronizerMessage(LocalRegion rgn) { final GemFireCacheImpl cache = rgn.getCache(); final EventID eventId = new EventID(cache.getDistributedSystem()); final DistributedMember member = cache.getMyId(); this.initializeEvent(rgn, eventId, member); // this.remoteDistribution = remoteDistribution; this.rgn = rgn; }
public PersistentMemberID generatePersistentID(DiskRegionView dr) { File firstDir = getInfoFileDir().getDir(); InternalDistributedSystem ids = getCache().getDistributedSystem(); InternalDistributedMember memberId = ids.getDistributionManager() .getDistributionManagerId(); //NOTE - do NOT use DM.cacheTimeMillis here. See bug #49920 long timestamp = System.currentTimeMillis(); PersistentMemberID id = new PersistentMemberID(getDiskStoreID(), memberId.getInetAddress(), firstDir.getAbsolutePath(), memberId.getName(), timestamp, (short) 0); return id; }
public boolean areSecondariesPingable() { Set<InternalDistributedMember> hostingservers = this.partitionedRegion.getRegionAdvisor() .getBucketOwners(this.getId()); hostingservers.remove(cache.getDistributedSystem().getDistributedMember()); if (cache.getLoggerI18n().fineEnabled()) cache.getLoggerI18n().fine("Pinging secondaries of bucket " + this.getId() + " on servers " + hostingservers); if (hostingservers.size() == 0) return true; return ServerPingMessage.send(cache, hostingservers); }
private void handleTableDrop(String fullTableName) { GemFireCacheImpl cache = Misc.getGemFireCache(); InternalDistributedMember thisMember = cache.getDistributedSystem().getDistributedMember(); String memberNameOrId = MBeanJMXAdapter.getMemberNameOrId(thisMember); this.tableMBeanDataUpdater.removeUpdatable(fullTableName); // first stop updates Set<ObjectName> unregisteredMBeanByPattern = this.unregisterMBeanByPattern(ManagementUtils.getTableMBeanGroupPattern(memberNameOrId, fullTableName)); logFine("Unregistered following MBeans for \""+fullTableName+"\": " + unregisteredMBeanByPattern, null); }