public static String getAppName ( ResourceInst [ ] resources ) { if ( resources == null || resources . length == 0 ) return null ; ResourceType rt = null ; for ( ResourceInst resourceInst : resources ) { if ( resourceInst == null ) continue ; rt = resourceInst . getType ( ) ; if ( rt == null ) continue ; if ( ! "CacheServerStats" . equals ( rt . getName ( ) ) ) continue ; return resourceInst . getName ( ) ; } return null ; }
Current supports get cache server name Determine the logic name of app