class HostService {

    public boolean isHostUpAndEnabled(long hostId) {
        return Status.Up.equals(hostDaoJdbc.getStatus(hostId)) && ResourceState.Enabled.equals(hostDaoJdbc.getResourceState(hostId));
    }

}