public String toJson ( ) { StringBuilder json = new StringBuilder ( "" ) ; json . append ( "{" ) ; json . append ( "\"vertexid\": \"" + this . getID ( ) + "\"," ) ; json . append ( "\"vertexname\": \"" + StringUtils . escapeHtml ( this . toString ( ) ) + "\"," ) ; json . append ( "\"vertexstatus\": \"" + this . getExecutionState ( ) + "\"," ) ; json . append ( "\"vertexinstancename\": \"" + this . getInstanceName ( ) + "\"," ) ; json . append ( "\"vertexinstancetype\": \"" + this . getInstanceType ( ) + "\"" ) ; json . append ( "}" ) ; return json . toString ( ) ; }
Returns Json representation of this ManagementVertex