/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map - <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails ( ) { return ctx.getDistributedStateCache() .getFromCacheForPattern(MEMBER_DETAILS, memberToken ); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map - <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails ( ) { return ctx.getDistributedStateCache() .getFromCacheForPattern(MEMBER_DETAILS, memberToken ); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * * @return Map <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails () { return ctx.getDistributedStateCache() .getFromCacheForPattern(MEMBER_DETAILS, failedMember ); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map - <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails ( ) { return ctx.getDistributedStateCache() .getFromCacheForPattern(MEMBER_DETAILS, failedMember ); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map - <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails ( ) { return ctx.getDistributedStateCache() .getFromCacheForPattern(MEMBER_DETAILS, failedMember ); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * * @return Map <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails () { return ctx.getDistributedStateCache() .getFromCacheForPattern(MEMBER_DETAILS, failedMember ); }
/** * {@inheritDoc} */ public Map<Serializable, Serializable> getMemberDetails() { Map<Serializable, Serializable> ret = new HashMap<Serializable, Serializable>(); if( ctx == null ) { ctx = GMSContextFactory.getGMSContext( groupName ); } DistributedStateCache dsc = ctx.getDistributedStateCache(); if( dsc != null ) { ret = dsc.getFromCacheForPattern( MEMBER_DETAILS, memberToken ); } else { logger.log( Level.WARNING, "no.instance.dsc", new Object[]{ memberToken } ); } return ret; }
/** * {@inheritDoc} */ public Map<Serializable, Serializable> getMemberDetails() { Map<Serializable, Serializable> ret = new HashMap<Serializable, Serializable>(); if( ctx == null ) { ctx = GMSContextFactory.getGMSContext( groupName ); } DistributedStateCache dsc = ctx.getDistributedStateCache(); if( dsc != null ) { ret = dsc.getFromCacheForPattern( MEMBER_DETAILS, memberToken ); } else { logger.log( Level.WARNING, "no.instance.dsc", new Object[]{ memberToken } ); } return ret; }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map <Serializable, Serializable> */ @Override public Map<Serializable, Serializable> getMemberDetails ( ) { Map<Serializable, Serializable>ret = new HashMap<Serializable, Serializable>(); if(ctx == null) { ctx = GMSContextFactory.getGMSContext(groupName); } DistributedStateCache dsc = ctx.getDistributedStateCache(); if(dsc != null){ ret = dsc.getFromCacheForPattern(MEMBER_DETAILS, memberToken ); } else { logger.log(Level.WARNING, "no.instance.dsc", new Object[] {memberToken}) ; } return ret; }
/** * returns the details pertaining to the given member. At times, details * pertaining to all members may be stored in the Cache but keyed by the * given member token. Through this route, details of all members could be * obtained. * returns a Map containing key-value pairs constituting data pertaining to * the member's details * * @param memberToken identity token of the member process * @return Map <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails(final String memberToken) { if (isWatchdog()) { final Map<Serializable, Serializable> retval = new HashMap<Serializable, Serializable>(); return retval; } return ctx.getDistributedStateCache().getFromCacheForPattern(MEMBER_DETAILS, memberToken); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map <Serializable, Serializable> */ @Override public Map<Serializable, Serializable> getMemberDetails ( ) { Map<Serializable, Serializable>ret = new HashMap<Serializable, Serializable>(); if(ctx == null) { ctx = GMSContextFactory.getGMSContext(groupName); } DistributedStateCache dsc = ctx.getDistributedStateCache(); if(dsc != null){ ret = dsc.getFromCacheForPattern(MEMBER_DETAILS, memberToken ); } else { logger.log(Level.WARNING, "no.instance.dsc", new Object[] {memberToken}) ; } return ret; }
/** * returns the details pertaining to the given member. At times, details * pertaining to all members may be stored in the Cache but keyed by the * given member token. Through this route, details of all members could be * obtained. * returns a Map containing key-value pairs constituting data pertaining to * the member's details * * @param memberToken identity token of the member process * @return Map <Serializable, Serializable> */ public Map<Serializable, Serializable> getMemberDetails(final String memberToken) { if (isWatchdog()) { final Map<Serializable, Serializable> retval = new HashMap<Serializable, Serializable>(); return retval; } return ctx.getDistributedStateCache().getFromCacheForPattern(MEMBER_DETAILS, memberToken); }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map <Serializable, Serializable> */ @Override public Map<Serializable, Serializable> getMemberDetails ( ) { Map<Serializable, Serializable>ret = new HashMap<Serializable, Serializable>(); if(ctx == null) { ctx = GMSContextFactory.getGMSContext(groupName); } DistributedStateCache dsc = ctx.getDistributedStateCache(); if(dsc != null){ ret = dsc.getFromCacheForPattern(MEMBER_DETAILS, memberToken ); } else { logger.log(Level.WARNING, "no.instance.dsc", new Object[] {memberToken}) ; } return ret; }
/** * returns the details of the member who caused this Signal to be generated * returns a Map containing key-value pairs constituting data pertaining to * the member's details * @return Map <Serializable, Serializable> */ @Override public Map<Serializable, Serializable> getMemberDetails ( ) { Map<Serializable, Serializable>ret = new HashMap<Serializable, Serializable>(); if(ctx == null) { ctx = GMSContextFactory.getGMSContext(groupName); } DistributedStateCache dsc = ctx.getDistributedStateCache(); if(dsc != null){ ret = dsc.getFromCacheForPattern(MEMBER_DETAILS, memberToken ); } else { logger.log(Level.WARNING, "no.instance.dsc", new Object[] {memberToken}) ; } return ret; }
/** * Find records of not finished delegated recovery in the recovery lock file on * this path and recorded before specified timestamp, and do delegated recovery if such record exists */ String finishDelegatedRecovery(String logdir, long timestamp) { String delegatedLogDir = null; String instance = fence.getInstanceRecoveredFor(logdir, timestamp); if (_logger.isLoggable(Level.INFO)) { _logger.log(Level.INFO, "[GMSCallBack] Instance " + instance + " need to finish delegated recovering"); } if (instance != null) { DistributedStateCache dsc=gms.getGroupHandle().getDistributedStateCache(); Map<Serializable, Serializable> memberDetails = dsc.getFromCacheForPattern(MEMBER_DETAILS, instance ); delegatedLogDir = (String)memberDetails.get(TXLOGLOCATION); if (_logger.isLoggable(Level.INFO)) { _logger.log(Level.INFO, "[GMSCallBack] Tx log dir for instance " + instance + " is " + delegatedLogDir); } doRecovery(delegatedLogDir, instance, timestamp); } return delegatedLogDir; }