public void updateServiceInstanceStatus(String serviceName, String instanceId, OperationalStatus status){
        ProtocolHeader header = new ProtocolHeader();
        header.setType(ProtocolType.UpdateServiceInstanceStatus);

        UpdateServiceInstanceStatusProtocol p = new UpdateServiceInstanceStatusProtocol(serviceName, instanceId, status);
        connection.submitRequest(header, p, null);
    }
public void updateServiceInstanceStatus ( String serviceName , String instanceId , OperationalStatus status ) { ProtocolHeader header = new ProtocolHeader ( ) ; header . setType ( ProtocolType . UpdateServiceInstanceStatus ) ; UpdateServiceInstanceStatusProtocol p = new UpdateServiceInstanceStatusProtocol ( serviceName , instanceId , status ) ; connection . submitRequest ( header , p , null ) ; }
Update ServiceInstance status.

@param serviceName
the service name.
@param instanceId
the instanceId.
@param status
the OeperationalStatus.