As in when the brakes are applied, the force would be back towards to mounting point of the brake stay, therefore putting it under a compressive force.
For example, on honda cb's the brake stay is mounted underneath the line of the swingarm, so when breaking occurs, the force is away from the mounting point, putting tension on to the stay.