public static String topologyIdToName ( String topologyId ) throws InvalidTopologyException { String ret ; int index = topologyId . lastIndexOf ( ' ' ) ; if ( index != - 1 && index > 2 ) { index = topologyId . lastIndexOf ( ' ' , index - 1 ) ; if ( index != - 1 && index > 0 ) ret = topologyId . substring ( 0 , index ) ; else throw new InvalidTopologyException ( topologyId + " is not a valid topologyId" ) ; } else throw new InvalidTopologyException ( topologyId + " is not a valid topologyId" ) ; return ret ; }
Convert topologyId to topologyName . TopologyId = topoloygName - counter - timeStamp