public String notifyRulesReady ( Agreement slaAgreement ) { Entity content = Entity . entity ( "" , MediaType . TEXT_PLAIN ) ; Invocation invocation = getJerseyClient ( ) . target ( getEndpoint ( ) + "/seaclouds/commands/rulesready?agreementId=" + slaAgreement . getAgreementId ( ) ) . request ( ) . header ( "Accept" , MediaType . APPLICATION_JSON ) . header ( "Content-Type" , MediaType . APPLICATION_JSON ) . buildPost ( content ) ; //SLA Core returns a text message if the response was succesfully not the object, this is not the best behaviour return invocation . invoke ( ) . readEntity ( String . class ) ; }
Creates proxied HTTP POST request to SeaClouds SLA core which notifies that the Monitoring Rules were installed in Tower4Clouds .